Calling a content block in a news Summary

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
joecannes
Forum Members
Forum Members
Posts: 93
Joined: Mon Nov 26, 2007 5:00 pm
Location: Montreal, Quebec

Calling a content block in a news Summary

Post by joecannes »

Hi all,

I am wondering if this is possible and how it is done, my logic might be wrong.

Let's say for example, I have a custom content block in my template written as below:

Code: Select all

  {content block="archivedYearValue" assign="archivedYearValue"  label="Archived Year Value (YYYY)" oneline="1" wysiwyg="0"} 
and in my WYSIWYG editor, I am calling a news summary template:

Code: Select all

{news summarytemplate="NewsArchivesSummary"}
how do I call the value from "archivedYearValue" from my news summary template? This is my news summary template below:

Code: Select all

<h1>HEADER</h1>

{foreach from=$items item=entry}

{assign var="post_year_set_by_user" value=$entry->$archivedYearValue}

{if $post_year == post_year_set_by_user}
<div class="NewsSummaryLink">
	{$entry->titlelink}
</div>
{/if}
  {/foreach}
I am sure my logic is wrong, just trying to figure it out, any help would be great!

Thanks,

JC
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12678
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Calling a content block in a news Summary

Post by Dr.CSS »

You most likely will have to explain this in more detail as to what it is you are trying to do...
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image
Post Reply

Return to “Modules/Add-Ons”