ListIt2 Returning ID Not Page Alias

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
govicinity
Forum Members
Forum Members
Posts: 125
Joined: Tue Nov 22, 2011 2:22 pm

ListIt2 Returning ID Not Page Alias

Post by govicinity »

CMS Made Simple™ 1.12 “Pohnpei”
ListIt2 1.4.1
CGExtensions 1.48.2.1
CGSimpleSmarty 1.9.1
CGSmartImage 1.17
AdvancedContent 0.9.4.3
JQueryTools 1.3.5.2
FormBuilder 0.8.1.1

I have a query, I have created a module through ListIt2, wonderful module, but I am getting the return of a page ID rather than the alias.html of the page, I don't want this as it looks like duplicate content to the search engines, plus it's untidy.

Here's the code I have

Code: Select all

{if $items|@count > 0}
<ul class="teampage">
<!-- items -->
{foreach from=$items item=item}
<!-- item -->
<li class="team">
	<!-- field definitions -->
		{foreach from=$item->fielddefs item=fielddef}
		{cgsi_convert filter_croptofit='400,400,c,1' quality='100'}
		{if $fielddef.value && $fielddef.type != 'Categories'}
			{if $fielddef.type == 'SelectFile' || $fielddef.type == 'FileUpload'}
				<a href="{$item->fielddefs.section_url.value}" title="more on {$item->title}"><img src="{root_url}/uploads/images/SectionIcons/{$item->fielddefs.image.value}" /></a>
			{/if}
		{/if}
    {/cgsi_convert}
		{/foreach}
	<!-- field definitions //-->
	<h2 class="item-title">{$item->title}</h2>
	{if !empty($item->fielddefs)}
  <h4>{$item->fielddefs.intro.value}</h4>
	<div class="description">{$item->fielddefs.section_description.value|summarize:20:"...":false}</div>
	{/if}
</li>
<!-- item //-->
{/foreach}
<!-- items //-->
</ul>
{/if}
Thanks in advance for any help or advice offered.
Going up, woop, woop.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: ListIt2 Returning ID Not Page Alias

Post by Jeff »

I don't want this as it looks like duplicate content
This isn't correct, shows poor site setup.
plus it's untidy
This is valid.

Unfortunately....
ListIt2 doesn't have the URL field like the Content and the more recently updated CGBlog, News and like modules.

It can be worked around with a custom field and a UDT that is tied to the save event of the module. (Using this method you can also add multiple URLs for a Multi-lang site)
Post Reply

Return to “Modules/Add-Ons”