Dynamically create widgets in sitefinity - asp.net

Is there some way in creating widgets dynamically (sitefinity)?
For example:
I have some html data in DB, so i want to get that data, create a widget and place the data in widget as html content.
Any idee or info will be helpful.

You can use the built-in Content Block widget for this. See how to add it programmatically to a page here.

Related

Is there a drupal 7 module to change/filter content in a view via tabs that are not placed inside of the view?

I have a library page with some taxonomy topics(resource types) that are currently being filtered by some really hacky tabs that I would like to replace to do two things:
1) get new, more user friendly tabs, with the capability to be placed outside of the view yet change content inside the said view.
2) be able to have the tabs grouped together in a way I can manipulate them with css.
I am fairly new to the drupal world. What would you suggest? Thanks!
Do you use exposed filter options?
If so in the advanced tab of the view you have a option 'Exposed form in block' this way your exposed filters will be placed in a seperate block.
After saving the view you have to enable the block

A generic Topic content widget

I have been adding topic content areas to my pages by adding
#Html.Action("TopicBlock", "Topic", new { systemName = "OrderDetailsProductsBottom" })
I've noticed that everywhere I've been adding these topic actions there is a WidgetZone conveniently placed above it.
Is adding topic content to a widget zone possible?
Your question is valid. But widget and Topic are created to serve 2 different purpose.
Using topic action, you can render any Content page in any part of nopcommerce. You can control content from content management screen of admin.
Widgets are designed to render in specific html data on predefined widgets area to serve a specific purpose. So if you want to render many html's (topic), you may end-up with many widgets.
Hope it clarify both purposes.

Wordpress Custom Content Types

After long research, no answer or hints about this question seems to be available.
I want to have multiple image custom content types. But how to add them with jQuery? I want an option that add dynamically multiple image custom content types when you are in the user interface to add new content.
You have the custom content type in front of you: My
You want add a new one
You give it a description, and want to add an image
Here comes my question: You add an image and you click a button to add another image input field (in the backend)
I hope you can help me with this.
Edit: To be more specific, where, in which file do I implement the jQuery functionality to dynamically add more image upload fields. I have no clue where to implement it.
Are you referring to the back-end user (using wp-admin) or a front-end user (using your actual wordpress ite)?
You can use gravity forms ( http://www.gravityforms.com/ ) in combination with this plugin http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/ to create a front-end form that will allow a user to create a new taxonomy term as well as submit an image.
On the backend there is a great plugin to create duplicate fields which would allow you to do what you're describing as "You add an image and you click a button to add another image input field (in the backend)"...It's called magic fields http://magicfields.org/
What about http://podsframework.org/ its nice framework for handaling custom content type.

how to add a select box in a region of an created page in drupal

I want to create a list box in a region that has been created by me. Any help would be highly appreciated! I dont understand how to go about it. How can I add just a list box in the existing page?
You should create block (html or php filters should be enabled), put there your list box html code, then place this block into region.
But, using drupal way is recommend - drupal api - create simple module, add form function with list box (select field) and call this form from block hook.

Creating content in a block in Drupal 6

By default for creating content a new page is opened. I want to do this inside a block. A block where there will be some fields like title body taxonomy terms and a create content button. How can I do this?
The form block module will do what you want.
You could you do the same thing in code, using hook_block to create a block. And using
drupal_get_form to render the form.
Try the Panels module.
http://drupal.org/project/panels
It will let you override and re-arrange the node add/edit form.
But, as Jeremy stated, to use this form on other pages of the site you will need to do something custom like hook_block and invoke drupal_get_form.
I agree with the answers from Jeremy and Kevin, but want to give another one.
You can use views to create the block! All you have to do is create a new view display with a block display. Add the fields you want to show, add a link field for the node/add/foo link and give it a node id filter or default argument. Here you have to choose the node id of the node to display in the block. Done!
What's nice with this solution? You can use almost every feature of views theming, drag and drop field ordering, adding new fields is cheap and no extra modules. ;)
Regards
Mike

Resources