Using Evo 1.0.6
I have made a TV with single select Yes No and assigned it to a template. If admin selects Yes, the resource's longtitle should be output to a chunk. None if selected No.
For example, I would like to have a checkbox while adding a resource which says "List this page as popular". Which if checked displays the resource's longtitle in a chunk in a list, like
Chunk output:
<h3>Popular Pages</h3>
<ul>
<li>[*longtitle*]</li>
</ul>
In the TV Input Option Values, add this:
Yes=={{nameOfChunk}}
Then when the checkbox is selected, the chunk will be displayed wherever your TV tag appears in your templates.
Related
I'm building a site in Kentico 12 MVC and working on setting up content personalization. The normal way to do this is to add an editable area in the view:
<div>
#Html.Kentico().EditableArea("area1")
</div>
Then, in the CMS, the Page tab will show an empty area where the user can add a widget with personalized content.
The problem is that the content I want to personalize is located in my site's login box, which is a common element on every page, so I'd need to manually add a widget into the editable area on every page individually. But my site has over 300 pages, so that's totally impractical.
Is there a way from within my view model that I could check if the editable area has any widgets, and if it doesn't, output default content instead? I'm trying to see if there's an API method or something that would let me count the number of widgets inside an editable area, but I can't find anything in the documentation.
I guess you need to check with regex if Editable area html contains widget tag "<object type="widget" >"
I'm developing a CAF Cast Receiver and have question about queue functionality. The cast-media-player offers built-in functionality for displaying a view that let the users know that there another item coming up soon. The view is displayed 20 seconds from the end of the current item and has text "Your video will play in XX"
I'm looking for a way to at least localize this text, is that possible? The div that holds the text has id nextMetadataCountdown but I can't seem to access that from javascript.
if not, is it possible to hide this view so we can present a custom view?
The text is hardcoded in the receiver framework. You can prevent it from being displayed entirely by adding the following CSS:
cast-media-player {
--next-preview-visibility: hidden;
}
I know this is a common problem, and I tried a few solutions already, but the problem I have right now with my current code is that even though the attachments show in the computed for display field, I get the error "Note Item not Found" when I try to open them.
The form is built with two fields, in a programmable table that displays the editable one or the computed for display one.
The trick I found with Google's help was to delete the computed for display item in the queryopen event, so Notes regenerates the cfd item when opening the document. Visually, this works, as I see the text and attachments, but the attachments can't be opened.
Here is the code that removes the item in the QueryOpen of the form:
...
Set item = doc.GetFirstItem("dspDescription")
If Not item Is Nothing Then Call item.Remove()
...
Has anyone successfully achieved that functionality? Is there another way of doing this? I already tried with subforms, and because of the way the application is built, I need to be able to switch from editable to read only on the flick of a radio button, so subforms are out of the question as they can't be displayed dynamically.
Why don't you simple put the richtext item in a controlled access section and make that section editable / not editable with a computed for display formula. Select "always expand" and hide the section title, so that nobody can collapse it, et voila.
Regarding your comment: With this properties:
for this section in designer:
You get this result:
You see: No twisty, no "visible" section
I want to create a page in Drupal 6 where I can show list of restaurants.When a user clicks on any restaurant page, I should be redirected to Restaurant details page.
For this :
1.) I created a new content type called "Restaurant" with some fields.
2.) Created 3-4 content items for Restaurant( Restaurant1, Restaurant2, Restaurant3)
3.) Created view called: RestaurantList, Added Fields for it. Then added Page Display and gave the path for it http://website/Restaurants
Now, when I browse to Restaurants page, I only get labels of my fields but no values. How can I get the values but not the labels? Also, I want to go to the RestaurantDetails page. How can that be achieved?
Thanks,
Rashmi
Well if I were to set up a page view this is how I would set it up:
Filters:
Node type - Restaurants
Node published - Yes
Fields
Node title
check the option Link this field to it's node
leave the Label: field empty
check option Hide if empty
And if your view style is a HTML list, for extra you can go to Row style options and check the option: Hide empty fields
Make sure you click Preview to see if you get any values. If you don't then there's something wrong with the view settings, most probably the filters which are to restrictive. Start with something loose, like Node type - Restaurants.
how to add a dynamic sidebar on drupal?
(Like how do we create a sidebar with the top 3 videos)
Create a Block View and filter it by your video content type. Limit it to 3. Then on the blocks configuration page, drag your newly created block into the sidebar of your choice.
You can do the same for your news content type. Just create another block view that's filtered by your news content type.