Search found 402 matches

by spcherub
Tue Jan 31, 2017 1:30 pm
Forum: CMSMS Core
Topic: Content block default not working
Replies: 6
Views: 2985

Re: Content block default not working

Just realized that one downside of that workaround is that the editor will not notice that there is default text when in the editor. Or be able to start with the default text and make small adjustments.
by spcherub
Tue Jan 31, 2017 1:24 pm
Forum: CMSMS Core
Topic: Content block default not working
Replies: 6
Views: 2985

Re: Content block default not working

@chrisbt: That looks like a good workaround while the bug is being worked out. I will try it out and report back.

Thanks!
by spcherub
Mon Jan 30, 2017 4:40 pm
Forum: CMSMS Core
Topic: Content block default not working
Replies: 6
Views: 2985

Re: Content block default not working

@Rolf - the problem is not with using the variable that is assigned in the content block. It is that the "default" parameter is not working - it does not pull in the string I put in as the default. Are you saying that the scope also has to be assigned for the "default" parameter ...
by spcherub
Mon Jan 30, 2017 4:03 pm
Forum: CMSMS Core
Topic: Content block default not working
Replies: 6
Views: 2985

Content block default not working

I am trying to set a default value for an additional content block using this syntax: {content block="more_copy" assign="more_copy" label="More Copy" default="This is default copy for this additional field" oneline="true"} However, the default copy d...
by spcherub
Fri Oct 21, 2016 10:33 am
Forum: CMSMS Core
Topic: Get name of template
Replies: 4
Views: 2383

Re: Get name of template

Thanks for that tip on how to get the template name for the current page. I did not realize that it is contained in the $smarty object. In my case however, I need to be able to get the name of the templates of other pages from within the Navigator code, so any tips to that end will be appreciated. O...
by spcherub
Thu Oct 20, 2016 9:30 pm
Forum: CMSMS Core
Topic: Get name of template
Replies: 4
Views: 2383

Re: Get name of template

I did some more searching and was able to write a UDT based on Calguy's response to a similar question earlier: $page_id = !empty($params['page_id']) ? $params['page_id'] : null; $hm = CmsApp::get_instance()->GetHierarchyManager(); $node = $hm->sureGetNodeByAlias($page_id); $content_obj = $node->Get...
by spcherub
Thu Oct 20, 2016 7:28 pm
Forum: CMSMS Core
Topic: Get name of template
Replies: 4
Views: 2383

Get name of template

Is there a way for to get the name of the template of the current page? For instance, my Navigator template looks something like this: {if isset($nodes)} {foreach $nodes as $node} <tr {fetch file="{$node->url}"} </tr> {/foreach} {/if} I'd like to be able to add some conditional logic based...
by spcherub
Tue Oct 18, 2016 9:34 pm
Forum: CMSMS Core
Topic: Smarty {include} tag
Replies: 2
Views: 1600

Re: Smarty {include} tag

I was able to answer my own question after all. Yes it is supported and works great as long as there is no duplication of content block names between the templates.
by spcherub
Tue Oct 18, 2016 9:25 pm
Forum: CMSMS Core
Topic: Smarty {include} tag
Replies: 2
Views: 1600

Smarty {include} tag

I'd like to be able to use the Smarty {include} tag in my template to pull in another template. Is this supported in CMS2? What I'm trying to do cannot be done with the template inheritance method that has been well documented in Rolf's help page (http://www.cmscanbesimple.org/blog/the-power-of-temp...
by spcherub
Thu Oct 13, 2016 5:02 pm
Forum: CMSMS Core
Topic: New template compile error in 2.1.5
Replies: 5
Views: 2406

Re: New template compile error in 2.1.5

Got it. I was using a way to hide the <head> tag from the template parser: {assign var="htmlhead" val="head"} <__html> <{$htmlhead}> ... I'm assuming this is unstable workaround at best. Is there any other way to accomplish what I need (as outlined in my earlier pseudo-code)?
by spcherub
Thu Oct 13, 2016 2:00 pm
Forum: CMSMS Core
Topic: New template compile error in 2.1.5
Replies: 5
Views: 2406

Re: New template compile error in 2.1.5

Just to clarify my current use-case/need (in pseudocode): if logic condition is true then display text information (no html tags) else display html page end if I need to be able to do this at a template level, so that the page can render text or html output depending on how it is accessed. If there ...
by spcherub
Thu Oct 13, 2016 1:50 pm
Forum: CMSMS Core
Topic: New template compile error in 2.1.5
Replies: 5
Views: 2406

Re: New template compile error in 2.1.5

@Rolf - thanks for link. There are some good references there. However, it does not address the specific parsing issue I'm facing. Also it looks like the scope processing has changed in the current version of the platform. For instance I used to be able to assign a variable in zone 1 and use it in z...
by spcherub
Thu Oct 13, 2016 1:34 pm
Forum: CMSMS Core
Topic: New template compile error in 2.1.5
Replies: 5
Views: 2406

New template compile error in 2.1.5

I have a template that outputs text or HTML based on a query parameter. This works well in 2.1.4 (and a few versions below), but fails with the following error ins 2.1.5 Syntax error in template "tpl_top:36" on line 9 "" unclosed {else} tag The simplified template code is as foll...
by spcherub
Fri Jun 03, 2016 6:52 pm
Forum: General Discussion
Topic: I miss the old Global Content Blocks
Replies: 10
Views: 7250

Re: I miss the old Global Content Blocks

I agree that in many cases it is better to stick to "core" as much as possible. In my case, I see two possibilities: 1. Use the Page:Generic approach outlined earlier in this post. It is completely based on core capabilities and not likely to change significantly in the near-to-middle term...
by spcherub
Mon May 23, 2016 6:06 pm
Forum: General Discussion
Topic: I miss the old Global Content Blocks
Replies: 10
Views: 7250

Re: I miss the old Global Content Blocks

I had similar concerns and asked about this earlier on the forum. Here is a quick summary of the recommendations: - Create a generic template and add one content block for each GCB you will need. Make sure to give each block a unique name. - Create a page using this new template (make sure it does n...

Go to advanced search