I have a database of products and links to those products and would like to link to them. Right now a user can manually find the link of the product and then manually insert the link into content but I would rather have it as an option like a dropdown. I know there is already umbraco customization on the link popup becuase you can pick the link through the content picker there.
I just need to be able to add a dropdown of the products and then on selection add the correct link of the product into the textbox. Has anyone tried this before?
Create a custom data type based on DAMP. The change the settings so that the default start node is your 'products' node and limit the doctypes to only Products. This should mean that the user can only choose Products. Add a new 'Chosen Products' property to your page doctype, which uses your new datatype. You can also allow the user to select more than one item at a time.
In you want to be able to 'insert' a product into the content of a page (i.e. into the Rich Text Editor area). You'll probably want to create macro that allows the user to select a product (or products) via the 'insert macro' option on the editor.
E.g. one implementation we have is a "insert youtube video" macro for the editor, where the user can easily choose from a list of youtube videos (where the 'video' parameter is a custom dropdownlist macro parameter)
i have used the insert macro version before for youtube videos but a youtube video would be appropriate for that because it isn't likely that you would have the video float with text anywhere. i think that they would be writing a sentence, want a word to link to the product, and try to link it but for user experience it wouldn't look right for an admin to have that block of yellow seperating the text above and below. if all else fails i will probably do that though
the tinymce plugin route might be the best way to go for the user experience. instead of clicking link they click a button for product linking. just have to figure out a way to do that now! :-\ i found where all the plugins are at least so its a start
Customizing link dialog in rich text control
I have a database of products and links to those products and would like to link to them. Right now a user can manually find the link of the product and then manually insert the link into content but I would rather have it as an option like a dropdown. I know there is already umbraco customization on the link popup becuase you can pick the link through the content picker there.
I just need to be able to add a dropdown of the products and then on selection add the correct link of the product into the textbox. Has anyone tried this before?
Have a look at using DAMP:
http://our.umbraco.org/projects/backoffice-extensions/digibiz-advanced-media-picker
Create a custom data type based on DAMP.
The change the settings so that the default start node is your 'products' node and limit the doctypes to only Products. This should mean that the user can only choose Products.
Add a new 'Chosen Products' property to your page doctype, which uses your new datatype.
You can also allow the user to select more than one item at a time.
In you want to be able to 'insert' a product into the content of a page (i.e. into the Rich Text Editor area). You'll probably want to create macro that allows the user to select a product (or products) via the 'insert macro' option on the editor.
Simply create a marco as usual and tick the 'use in editor' option.
You may need to create your own custom Macro attribute, which would be a list of products for the user to choose from. See here for more help:
http://our.umbraco.org/wiki/how-tos/how-to-create-a-custom-macro-parameter-type
http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/xslt-in-umbraco-45/macro-parameters
http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/razor/working-with-macro-parameters ;
E.g. one implementation we have is a "insert youtube video" macro for the editor, where the user can easily choose from a list of youtube videos (where the 'video' parameter is a custom dropdownlist macro parameter)
i have used the insert macro version before for youtube videos but a youtube video would be appropriate for that because it isn't likely that you would have the video float with text anywhere. i think that they would be writing a sentence, want a word to link to the product, and try to link it but for user experience it wouldn't look right for an admin to have that block of yellow seperating the text above and below. if all else fails i will probably do that though
the tinymce plugin route might be the best way to go for the user experience. instead of clicking link they click a button for product linking. just have to figure out a way to do that now! :-\ i found where all the plugins are at least so its a start
is working on a reply...