I'm using Sitecore 7.2 with MVC. I have a component that has a Multilist with Search field that points to media items. There can be multiple media items here.
Is there a way to make this list editable via the Page Editor?
Thanks
Yes, you will need to use Edit Frames.
These posts describe what they are and how to use them:
http://briancaos.wordpress.com/2011/11/28/using-sitecore-editframe-in-pageedit/
http://www.cmsbestpractices.com/how-to-properly-use-sitecore-edit-frames/
Related
I'm trying to use a droptree field to allow content editors to pick one folder item from a tree of items. Here i have to restrict the droptree field to accept only media folder item and it should not allow media items like image and videos. I have set the source as datasource:
DataSource=/sitecore/media library/User Submitted Media&ExcludeTemplatesForSelection=Jpeg,Image
The above mentioned datasource is not working. Still i am able to select both media item and media folder. Sitecore version i am using is 7.2. Am i missing anything?
You can't use Include/Exclude TemplatesForDisplay/Selection with DropTree. See this stackoverflow answer
I'm using aldryn-search on my Django CMS site. One of my custom plugins has a ManyToMany field to Django groups, to indicate which user groups may see the plugin (and of course the child plugins). I'm considering this field in the render() method of the plugin.
This works fine on the page, but I can't find a way to prevent the regarding plugins from being indexed by the search (which is Elastic Search). Any idea?
So to exclude the plugin from being searched completely.
You can set search_fulltext = False in your plugin class or plugin model.
To exclude the plugin only from users who do not have access to it is a bit more work but is not too complex.
You would have to create a dedicated index class for this plugin and deactivate it from cms page search as shown below.
Then in the dedicated plugin index class, add a MultiValueField to hold a list of user ids that can see this plugin, note that you'll have to make sure to only index plugins that have a page attached to them plugins.filter(placeholder__page__isnull=False) and also only plugins whose page is published and public.
After finishing the index class/logic, if using solr, then update schema to reflect new field.
Rebuild the index.
Here's an example on how the query could look like:
if request.user.is_authenticated():
SearchQueryset().models(PluginClass).filter(allowed_user_ids=request.user.pk)
Let me know how it goes :)
I have implemented WeBlog for sitecore and created custom templates that inherit from Entry, Comment and Category. The RSS Feeds aren't displaying any data now. I did change the query in RSS-Feeds Data Items Field to use the CustomEntry's TemplateID.
I also verified that the query is correct by using XPath builder. Any idea what's wrong?
query:/sitecore/content/Home/Blog//*[##templateid = '{6CF60F32-967D-4CCE-9878-13E2B9B6B2D5}']
I figured this out. Had to go to Standard Values of the "Custom Blog Entry", go to Presentation and setup RSS Feed design under"Feeds".
I have a question about the Drop List field type of Sitecore Web Forms for marketers.
I want to build a web page which has two drop lists that are connected. When the first one changes, the other one's data changes based on the selected value of the first one.
How do I achieve this?
This is not possible out of the box. You will need to build a custom WFFM field that will store the 2 droplist. If you need more information on how to build custom WFFM fields you can checkout this blog post.
I want to store multiple images for an item (e.g. images of a building) and I need to create a image viewer control in the ASP.NET website as well.
What are good options to save and retrieve images from Sitecore? If there is an Image list kind of control that would be ideal in my scenario.
Is it a good option to use the "Attachment" field type? If anyone has code examples, please share.
The Sitecore Field Suite open source module contains an "Image Field" control that allows you to attach multiple images to a content item. Unlike a normal multilist, the Image List allows authors to see the images they are attaching directly in the Content Editor, which can be very helpful in choosing and arranging Carousel items.
Links:
Blog post introducting the Field Suite: http://blog.velir.com/index.php/2012/10/24/sitecore-field-suite/
FIeld Suite on Sitecore Marketplace: http://marketplace.sitecore.net/en/Modules/Field_Suite.aspx