CMS MADE SIMPLE FORGE

CGBlog

 

[#10501] Add article id to Linkdefinition object

avatar
Created By: Ruud van der Velden (ruudvdvelden)
Date Submitted: 2015-04-24 04:15

Assigned To:
Resolution: Fixed
State: Closed
Summary:
Add article id to Linkdefinition object
Detailed Description:
The CGBlog Linkdefintion lacks the article id. Linkdefinition class already has
capability to add an id. It just doesn't seem to be implemented by CGBlog.

Use case: 
Hitcounter popular action together with {CGBlog action='detail'
articleid=$linkdefn->id detailtemplate='popular'} to build a list of popular
articles with every possible CGBlog detail template layout.

Suggestion:

file: CGBlog/lib/class.LinkDefinitionGenerator.php

$linkdefn = new BASE\LinkDefinition();
$linkdefn->href = $article->canonical;
$linkdefn->text = $article->title;
$linkdefn->id = $article->id;  // <-- new feature


History

Comments
avatar
Date: 2015-04-26 15:13
Posted By: Robert Campbell (calguy1000)

Done, and released.
      
Updates

Updated: 2015-05-05 21:35
state: Open => Closed

Updated: 2015-04-26 15:13
resolution_id: => 7