Can't justify it for this project and pretty snowed under but I'd love
to take a look at this at some point.
Thanks for the info.

Matt

----------------------------------------------
http://cenatus.org/
http://radialsolutions.co.uk/
----------------------------------------------


On Fri, Jun 25, 2010 at 2:49 PM, Josh French <j...@digitalpulp.com> wrote:
> That's not in the core PageFactory extension but I bet it wouldn't be hard
> to write your own extension to bridge the two. Without diving into the code,
> I think you'd need at least to parts:
>
> * Define PageFactory::Base.tags, used to declare the default tags in your
> factory
> * Alias method chain
> PageFactory::PagesControllerExtensions#set_page_defaults to add tags from
> the current factory to the page instance under creation
> * Alternately, I think you could alias method chain Page.new_with_defaults
> to inspect the current factory's default tags and add those to the page
> instance being returned
>
> I tried to keep the factory class pretty self-contained in order to make
> stuff like this easier. I look forward to seeing what you come up with!
>
> j
>
> On Jun 25, 2010, at 6:24 AM, Matt Spendlove wrote:
>
>> Hey Josh/All
>>
>> I have Page Factory and Tags extensions installed. Is it possible to
>> use PF to default some tags on a page?
>>
>> Thanks
>>
>> Matt
>>
>> ----------------------------------------------
>> http://cenatus.org/
>> http://radialsolutions.co.uk/
>> ----------------------------------------------
>
>

Reply via email to