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?
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?
Attached is a screenshot of what I'm trying to accomplish.
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.
I'm not the best with attributes. Haven't used them much yet. But, I'd love to learn how to do that.
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
Not literally... that's just to get you started.
Of course you'll probably need to update the CSS as well.
Good luck!
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!
that is exactly what I'm doing. Does this look right?
echo("<span class=\"greenbg\">$c->getCollectionAttribute('model')</span>");
echo("<span class=\"greenbg\">$c->getCollectionAttribute('model')</span>");
Try $cobj->getCollectionAttribute('model')
<?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.
$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.
psh I'm a dumb ass. thanks for the help guys!
That just made me fall in love with attributes.
That just made me fall in love with attributes.