Search found 462 matches
- Sat Oct 11, 2014 12:04 pm
- Forum: CMS Show Off
- Topic: A few sites in development
- Replies: 2
- Views: 3482
Re: A few sites in development
One more... http://www.aquaticpyramids.com.au/ Framework: Bootstrap - based on free Moderna template at http://bootstraptaste.com/free-bootstrap-template-corporate-moderna/ Cms Version: 1.11.10 Installed Modules: CMSMailer: 5.2.2 CMSPrinting: 1.0.5 FileManager: 1.4.4 MenuManager: 1.8.6 MicroTiny: 1....
- Sat Oct 11, 2014 7:06 am
- Forum: Tips and Tricks
- Topic: Show items in a random order, shuffle your Smarty arrays!
- Replies: 12
- Views: 25600
Re: Show items in a random order, shuffle your Smarty arrays
...and add counter/break code like I added in this blog Rolf, you don't need the counter or {break}. After splicing the shuffled array, $items only contains the specified number of items, ie in the example above, a maximum of 8. The remainder are dropped. No need for {capture} either when using the...
- Fri Oct 10, 2014 10:04 pm
- Forum: The Lounge
- Topic: Vote and save to a list?
- Replies: 3
- Views: 1908
Re: Vote and save to a list?
Try ListIt2 with ListIt2FEEdit where the button is a submit button for a form containing hidden fields with the info about the image. When clicked the info is saved in your custom LI2 instance.
- Fri Oct 10, 2014 9:19 pm
- Forum: Tips and Tricks
- Topic: Show items in a random order, shuffle your Smarty arrays!
- Replies: 12
- Views: 25600
Re: Show items in a random order, shuffle your Smarty arrays
I would like to view 6 articles published between all 50 I do something similar with a ListIt2 custom instance to randomly select 8 items. You will have to modify it to suit News. {if $items|@count > 0 && shuffle($items) !== false} {$items=array_slice($items,0,8)} <div class="row margi...
- Fri Oct 10, 2014 10:29 am
- Forum: Modules/Add-Ons
- Topic: [solved] SEOTools2 + CGBlog: controlling HTML TITLE
- Replies: 7
- Views: 3686
Re: SEOTools2 + CGBlog: controlling HTML TITLE
Check that your other pages (not CGBlog detail) are getting the correct title.1. Just after {process_pagedata} in your page template, put {title assign='mytitle'}
It's quite possible my logic is up the creek.
- Fri Oct 10, 2014 10:18 am
- Forum: Modules/Add-Ons
- Topic: [solved] SEOTools2 + CGBlog: controlling HTML TITLE
- Replies: 7
- Views: 3686
Re: SEOTools2 + CGBlog: controlling HTML TITLE
What I do is... In SEO2 field 'Module custom field keywords Smarty var:' I enter the value : detail_keywords In CGBlog I create 2 text field defs, ie 'Keywords' and 'Metadescription' and in the CGBlog detail template put: {if !empty($entry->fields.Keywords->value)} {assign var='detail_keywords' valu...
- Fri Oct 10, 2014 7:49 am
- Forum: Modules/Add-Ons
- Topic: Help With Image Selection In ListIt2
- Replies: 8
- Views: 2697
Re: Help With Image Selection In ListIt2
Learn something new every day.
Thanks velden.
Thanks velden.
- Thu Oct 09, 2014 10:38 pm
- Forum: Modules/Add-Ons
- Topic: Help With Image Selection In ListIt2
- Replies: 8
- Views: 2697
Re: Help With Image Selection In ListIt2
This works for me where 'icon' is an image in a LI2 instance fielddef: {if isset($item->fielddefs.icon) && $item->fielddefs.icon->value != ''} <img src="{$item->fielddefs.icon->GetImagePath(true)}/{$item->fielddefs.icon->value}" alt="{$item->title|cms_escape}" /> {else} &...
- Thu Oct 09, 2014 8:37 pm
- Forum: Modules/Add-Ons
- Topic: [solved] SEOTools2 + CGBlog: controlling HTML TITLE
- Replies: 7
- Views: 3686
Re: SEOTools2 + CGBlog: controlling HTML TITLE
Another solution to the problem...
1. Above {process_pagedata} in your page template, put {title assign='mytitle'}
2. In the Title field of SEO2 put {$mytitle} | {sitename} etc
3. In your blog detail template put {$mytitle=$entry->title}
1. Above {process_pagedata} in your page template, put {title assign='mytitle'}
2. In the Title field of SEO2 put {$mytitle} | {sitename} etc
3. In your blog detail template put {$mytitle=$entry->title}
- Thu Oct 09, 2014 8:15 pm
- Forum: Modules/Add-Ons
- Topic: [solved] SEOTools2 + CGBlog: controlling HTML TITLE
- Replies: 7
- Views: 3686
Re: SEOTools2 + CGBlog: controlling HTML TITLE
The fields in SEO2 are Smarty enabled so you can apply your logic there instead of in your template. 1. Assign a var, eg $blogtitle, the value of $entry->title in your detail template 2. In SEOTools2, use Smarty logic to determine what to show for the title, eg {if isset($blogtitle)}{$blogtitle}{els...
- Wed Oct 08, 2014 9:38 pm
- Forum: The Lounge
- Topic: How to disable WYSIWYG for texarea boxes for News Module
- Replies: 2
- Views: 1749
Re: How to disable WYSIWYG for texarea boxes for News Module
Haven't checked but in your output template you could use the strip_tags modifier to remove the HTML.
{$myvar|strip_tags}
{$myvar|strip_tags}
- Wed Oct 08, 2014 9:23 pm
- Forum: The Lounge
- Topic: Possible to disable tinymce for page but enable for blog?
- Replies: 3
- Views: 1880
Re: Possible to disable tinymce for page but enable for blog
You can also use the strip_tags modifier on any variable, eg {$myvar|strip_tags}.
This way you can have your blog summary on the home page as plain text and still show the WYSIWYG summary version on another page.
This way you can have your blog summary on the home page as plain text and still show the WYSIWYG summary version on another page.
- Mon Oct 06, 2014 12:24 pm
- Forum: CMS Show Off
- Topic: A few sites in development
- Replies: 2
- Views: 3482
A few sites in development
http://www.rockdalecityrotaryclub.org.au/ Local rotary club site based on Rotary Intl club sites Framework: Foundation Zurb --------------------------------------------- Cms Version: 1.11.10 Installed Modules: CMSMailer: 5.2.2 CMSPrinting: 1.0.5 FileManager: 1.4.4 MenuManager: 1.8.6 MicroTiny: 1.2.6...
- Mon Sep 29, 2014 9:20 pm
- Forum: The Lounge
- Topic: how to create more page attributes
- Replies: 5
- Views: 2328
Re: how to create more page attributes
{content block="page extra attribute " assign="extra5" oneline="true"} Content block parameter must be url friendly, eg 'page-extra-attribute'. For longer names, add the label parameter, eg: {content block='extra-page-attribute' label='Extra page attribute' assign='ext...
- Tue Sep 23, 2014 10:08 am
- Forum: Modules/Add-Ons
- Topic: Change/add a Label on a Field Definition?
- Replies: 1
- Views: 1148
Re: Change/add a Label on a Field Definition?
For content blocks, in Extensions->Tags help
News does not give you the option to define a label for field defs. You could get creative with 'module_custom' for News templates...
Code: Select all
{content block="second_content_block" label="Second Content Block"}