Search found 20 matches
- Fri Dec 17, 2010 11:14 am
- Forum: CMSMS Core
- Topic: [solved] How to create a smarty variable what counts foreach
- Replies: 3
- Views: 1677
Re: How to create a smarty variable what counts foreach
Thanks. It works fine.
- Fri Dec 17, 2010 10:56 am
- Forum: CMSMS Core
- Topic: [solved] How to create a smarty variable what counts foreach
- Replies: 3
- Views: 1677
[solved] How to create a smarty variable what counts foreach
I have code
Output is
Output what I want to
How?
Code: Select all
{foreach from=$children item='child'}
{$i++}
Picture {$i}
{/foreach}
Code: Select all
1
Picture 1
2
Picture 2
3
Picture 3
Code: Select all
Picture 1
Picture 2
Picture 3
- Thu Dec 09, 2010 2:46 pm
- Forum: Modules/Add-Ons
- Topic: CG Feedmaker showing blank feed
- Replies: 7
- Views: 3489
Re: CG Feedmaker showing blank feed
Hey, I noticed if I remove from Calguys Feed Maker's Settings the Feed Extension value this start working. For default there is "rss". With the default value (not work) www.mydomain.com/feeds/newsrss Without the default value (works) www.mydomain.com/feeds/news And this works as well www.m...
- Thu Dec 09, 2010 2:37 pm
- Forum: Modules/Add-Ons
- Topic: Calguys Feed Maker: Default news feed template problem
- Replies: 3
- Views: 1732
[solved] Re: Calguys Feed Maker: Default news feed template problem
So the problem was a missing dot before rss in the end of url.
Thanks for that!
Thanks for that!
- Thu Dec 09, 2010 11:04 am
- Forum: Modules/Add-Ons
- Topic: Calguys Feed Maker: Default news feed template problem
- Replies: 3
- Views: 1732
Calguys Feed Maker: Default news feed template problem
Hi, I have just installed the Calguys Feed Maker module and trying to use the default news feed template. I'm just getting a blank feed www.mydomain.com/feeds/newsrss I have added the code into page header {CGFeedMaker action='autodiscovery' feed='news'} - CMSMS version 1.9.1 "Toopua" - C...
- Wed Oct 13, 2010 7:17 pm
- Forum: CMSMS Core
- Topic: [solved] How to list parent pages summary content block in top page
- Replies: 4
- Views: 1470
Re: How to list parent pages summary content block in top page
This CGSimpleSmarty module works me very well.
Thanks for help!
Thanks for help!
- Wed Oct 13, 2010 8:40 am
- Forum: CMSMS Core
- Topic: directory listing like content image tag
- Replies: 1
- Views: 896
directory listing like content image tag
Is there way to get a dropdown menu in content editing where you could choose a specific directory and it would return the directory path in the page template? Just like the content image tag but instead of picture files it shows just a directory list. I think I would get the dropdown menu like that...
- Fri Oct 01, 2010 9:00 am
- Forum: CMSMS Core
- Topic: [solved] How to list parent pages summary content block in top page
- Replies: 4
- Views: 1470
[solved] How to list parent pages summary content block in top page
Well, I have page hierarcy like this: 1. Products 1.1. Hammer 1.2. Saw 1.3. Flashlight 1.4. Crowbar All parent pages have {content block="Summary"} How do I list all parent pages Summary -content block in Products -page? I think the solution is a self made user tag where is a while loop. L...
- Sun Dec 02, 2007 1:09 pm
- Forum: CMSMS Core
- Topic: GoogleMap API and getting the value from my address content block
- Replies: 0
- Views: 778
GoogleMap API and getting the value from my address content block
I have a GoogleMapApi class what i included in a site template. The code look like this: {php} require('GoogleMapAPI.class.php'); global $gCms; $map = new GoogleMapAPI('map'); // enter YOUR Google Map Key $map->setAPIKey('MY-CODE'); // create some map markers $address = $gCms->va...
- Fri Nov 30, 2007 9:28 am
- Forum: CMSMS Core
- Topic: Get content (especially a summary text) from subpages?
- Replies: 2
- Views: 1439
Re: Get content (especially a summary text) from subpages?
How do I get the additional content blocks with this?global $gCms;
$contentops =& $gCms->GetContentOperations();
$content = $contentops->LoadContentByAlias( $childid );
- Wed Nov 07, 2007 8:49 pm
- Forum: Modules/Add-Ons
- Topic: How to print content?
- Replies: 2
- Views: 1470
Re: How to print content?
Will i do it under some function?
function Show() {
echo 'hello';
}
?
function Show() {
echo 'hello';
}
?
- Wed Nov 07, 2007 6:55 pm
- Forum: Modules/Add-Ons
- Topic: How to print content?
- Replies: 2
- Views: 1470
How to print content?
Well, i made a module and it have a contenttype.modulename.php. How do i print the content to the {content} tag? And can anyone tell me more about Show() function? I have a couple of my own params called "tekniset" and "esittely". I dont have the content_en param.
- Wed Sep 27, 2006 9:14 am
- Forum: Tips and Tricks
- Topic: Getting a page's root parent's alias
- Replies: 10
- Views: 11207
Re: Getting a page's root parent's alias
Yes, I just noticed the same thing. So, I made a code which will work in version 0.13. global $gCms; global $smarty; $manager =& $gCms->GetHierarchyManager(); $thisPage = $gCms->variables['content_id']; $node =& $manager->sureGetNodeById($thisPage); $node_data = (get_object_vars($node)); $pa...
- Wed Sep 27, 2006 9:01 am
- Forum: Tips and Tricks
- Topic: Getting a page's root parent's alias
- Replies: 10
- Views: 11207
Re: Getting a page's root parent's alias
This code doesn't work? I have CMSMS version 0.13. When I put the tag into the template code it stop printing after that.
- Sun Sep 17, 2006 5:23 pm
- Forum: Tips and Tricks
- Topic: How get a same image on the Page 1 and all the Page's 1 subpages?
- Replies: 5
- Views: 4112
Re: How get a same image on the Page 1 and all the Page's 1 subpages?
Sounds great, but I can't get it to work. 
