Dojo Page Filter

Permalink 1 user found helpful
I'm really liking the Dojo Page Filter.

http://www.concrete5.org/marketplace/addons/dojo-page-filter/...

But I'm having one problem with it. I need the text to be updatable per page. SO, instead of having "view this project" I want to be able to either 1. leave that blank or 2. edit that content to my liking instead of having them all the same content.

I hope that makes sense.

I talked to Chris the developer of Dojo Page Filter and he said it may not be possible? It seems crazy that it wouldn't be possible to do that. Would anyone be able to help me out?

bryanlewis
 
bryanlewis replied on at Permalink Reply 1 Attachment
bryanlewis
Attached is a screenshot of what I'm trying to accomplish.
LucasAnderson replied on at Permalink Reply
LucasAnderson
Would think you could accomplish that with Page Attributes, by adding that text as an attribute for each page and pulling it into the block where necessary, but I haven't really dug into the code so I can't be sure.
bryanlewis replied on at Permalink Reply
bryanlewis
I'm not the best with attributes. Haven't used them much yet. But, I'd love to learn how to do that.
kirkroberts replied on at Permalink Reply
kirkroberts
I agree that Page Attributes are the way to go: one for the product name, one for the number.
Then create a Custom Template for the Page Filter block and replace the "view this option" text with
$c->getCollectionAttribute('attribute_handle')

Not literally... that's just to get you started.
Of course you'll probably need to update the CSS as well.
Good luck!
bryanlewis replied on at Permalink Reply
bryanlewis
that is exactly what I'm doing. Does this look right?

echo("<span class=\"greenbg\">$c->getCollectionAttribute('model')</span>");
pvernaglia replied on at Permalink Reply
pvernaglia
Try $cobj->getCollectionAttribute('model')
bryanlewis replied on at Permalink Reply
bryanlewis
<?php

$pt = $cobj->getCollectionAttributeValue('page_thumbnail');
if($pt){
echo("<a href=\"$link\" class=\"picbg view\">");
$imgHelper->outputThumbnail($pt, 225,120, $title);
echo("<span class=\"greenbg\">$cobj->getCollectionAttribute('model')</span>");
echo("</a>");
}
?>


This is what I'm doing and its only pulling up ('model')
I have testing1 in there for a test. not for sure what I'm doing wrong.
bryanlewis replied on at Permalink Reply
bryanlewis
psh I'm a dumb ass. thanks for the help guys!
That just made me fall in love with attributes.