content_dump availability

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

content_dump availability

Post by sumpson »

Is the plugin content_dump not available anymore?

The wiki at http://wiki.cmsmadesimple.org/index.php ... ntent_dump is not available.

I'm using CMSMS 1.11.11 and have been trying different versions of content_dump, now trying 0.8.4

a simple:

Code: Select all

{content_dump}
{foreach from=$dump item=dump}
{$dump->content->data}
{/foreach}
shows the error:

Code: Select all

Syntax error in template "tpl_body:24"  on line 17 "{foreach from=$dump item=dump}" item variable 'dump' may not be the same variable as at 'from'
when I use:

Code: Select all

{content_dump}
{foreach from=$dump item="dump"}
{$dump->content->data}
{/foreach}
it's blank


content_dump is essential to get the website working right, is there a way I can get it to work or is there an alternative I can use?


Thanks for any help in advance.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: content_dump availability

Post by velden »

Code: Select all

Syntax error in template "tpl_body:24"  on line 17 "{foreach from=$dump item=dump}" item variable 'dump' may not be the same variable as at 'from'
This error seems pretty obvious to me; Smarty cannot create a variable with the name 'dump' while it is processing a variable with the name 'dump'.

Try something like:

Code: Select all

{foreach from=$dump item='dumpitem'}
BTW: I don't know about the module itself.
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: content_dump availability

Post by sumpson »

velden wrote:

Code: Select all

Syntax error in template "tpl_body:24"  on line 17 "{foreach from=$dump item=dump}" item variable 'dump' may not be the same variable as at 'from'
This error seems pretty obvious to me; Smarty cannot create a variable with the name 'dump' while it is processing a variable with the name 'dump'.

Try something like:

Code: Select all

{foreach from=$dump item='dumpitem'}
BTW: I don't know about the module itself.
thanks for your help, i've been trying item='dumpitem' but it does not work either.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: content_dump availability

Post by Jo Morg »

Are you talking about this http://dev.cmsmadesimple.org/projects/contentdump?
Personally I never used it, but you might want to try to contact the developer about it. There has been a recent release, but it seems to be beta, and not ready for production sites.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: content_dump availability

Post by sumpson »

Jo Morg wrote:Are you talking about this http://dev.cmsmadesimple.org/projects/contentdump?
Personally I never used it, but you might want to try to contact the developer about it. There has been a recent release, but it seems to be beta, and not ready for production sites.
Yes that's the plugin i'm talking about. Is there any other way I can re-use entered data on other pages?
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1978
Joined: Mon Jan 29, 2007 4:47 pm

Re: content_dump availability

Post by Jo Morg »

You can use CGSimpleSmarty. Check module's help file particularly the bit about get_page_content
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
sumpson
Forum Members
Forum Members
Posts: 111
Joined: Thu May 08, 2008 6:35 pm

Re: content_dump availability

Post by sumpson »

Thanks,

after a long struggle I got my data the way i want. Need information from child object and child of child object

Code: Select all

{cgsimple::get_children('',0,'children')}
			{if count($children)}
			   {foreach from=$children item='child'}
			      {if $child.show_in_menu}
			      	<h2>{$child.title}</h2>
			      	{cgsimple::get_page_content({$child.id},'','bcontent')}{eval var=$bcontent}
			        {cgsimple::get_page_content({$child.id},'catimg','foo')}{eval var=$foo}<br/>
			        
			        {cgsimple::has_children({$child.alias},'has_children')}
			        
			        {cgsimple::get_children({$child.alias},0,'childrens')}
			        {if $has_children}
			       
			        	{foreach from=$childrens item='child'}
			        		{$child.title}
			        		{cgsimple::get_page_content({$child.id},'prodimg','contentb')}{eval var=$contentb}<br/>
			        	{/foreach}
			        {/if}
			      {/if}
			   {/foreach}
			{/if}
Post Reply

Return to “Modules/Add-Ons”