On Mon, Jun 21, 2010 at 4:09 PM, Josh French <j...@digitalpulp.com> wrote:
> I've pushed a small change, can you update & make sure it's working for you?
>
> Related question for the list: anyone know how to reliably overwrite an
> existing tag description so that the reference is updated?

I haven't tried it, but a guess would be to override the
tag_descriptions on Page in the extension activate method.
http://github.com/radiant/radiant/blob/master/lib/radiant/taggable.rb#L46

>
> On Jun 21, 2010, at 1:14 PM, Matt Spendlove wrote:
>
>> Sure, thanks. Let me know if you need any info from my setup..
>>
>> ----------------------------------------------
>> http://cenatus.org/
>> http://radialsolutions.co.uk/
>> ----------------------------------------------
>>
>>
>>
>> On Mon, Jun 21, 2010 at 6:13 PM, Josh French <j...@digitalpulp.com> wrote:
>>>
>>> Looks like Radiant isn't finding the extended r:date definition. I'll
>>> take a
>>> look and get back to you.
>>>
>>> j
>>>
>>> On Jun 21, 2010, at 12:41 PM, Matt Spendlove wrote:
>>>
>>>> Hi Marshall/Josh
>>>>
>>>> Thanks for the info.
>>>> I've installed Page Factory and Page Parts and I agree, very useful
>>>> functionality.
>>>>
>>>> Unfortunately I get an error when I try and output the date held in my
>>>> start_page part using the <r:date for="start_date" /> tag. I can
>>>> output the date just fine if I use <r:content part="start_date"/> ,
>>>> obviously the date is then unformatted:
>>>>
>>>> StandardTags::TagError (Invalid value for 'for' attribute.):
>>>>  vendor/radiant/app/models/standard_tags.rb:597:in `tag:date'
>>>>  vendor/radiant/lib/radiant/taggable.rb:33:in `send'
>>>>  vendor/radiant/lib/radiant/taggable.rb:33:in `render_tag'
>>>>  vendor/radiant/app/models/page_context.rb:10:in `initialize'
>>>>  vendor/radiant/vendor/radius/lib/radius/context.rb:62:in `call'
>>>>  vendor/radiant/vendor/radius/lib/radius/context.rb:62:in `render_tag'
>>>>  vendor/radiant/vendor/radius/lib/radius/context.rb:93:in `stack'
>>>>  vendor/radiant/vendor/radius/lib/radius/context.rb:61:in `render_tag'
>>>>  vendor/radiant/app/models/page_context.rb:18:in `render_tag'
>>>>  vendor/radiant/vendor/radius/lib/radius/parser.rb:50:in `stack_up'
>>>>  vendor/radiant/vendor/radius/lib/radius/parse_tag.rb:12:in `call'
>>>>  vendor/radiant/vendor/radius/lib/radius/parse_tag.rb:12:in `to_s'
>>>>  vendor/radiant/vendor/radius/lib/radius/parser.rb:54:in `stack_up'
>>>>  vendor/radiant/vendor/radius/lib/radius/tag_binding.rb:33:in `call'
>>>>  vendor/radiant/vendor/radius/lib/radius/tag_binding.rb:33:in `expand'
>>>>  vendor/extensions/page_parts/lib/page_parts/page_part_tags.rb:65:in
>>>> `tag:if_later'
>>>>
>>>> I installed Page Parts with script/extension install and I'm on 0.9RC2.
>>>> Any ideas out there? Josh?
>>>>
>>>> Cheers
>>>>
>>>> Matt
>>>> ----------------------------------------------
>>>> http://cenatus.org/
>>>> http://radialsolutions.co.uk/
>>>> ----------------------------------------------
>>>>
>>>>
>>>>
>>>> On Sat, Jun 19, 2010 at 8:00 PM, Marshal Linfoot <mlinf...@gmail.com>
>>>> wrote:
>>>>>
>>>>> Hi Brian.
>>>>>
>>>>> In case you're thinking about using the page_parts extension, I have a
>>>>> simple example to show how that might work for you. Page_factory and
>>>>> page_parts are two excellent extensions, by the way -- highly recommend
>>>>> them. Page_parts comes with some built-in custom parts, in particular
>>>>> the
>>>>> datetime part is very useful.
>>>>> In my site, I use page_parts to define the startdate and enddate of
>>>>> events.
>>>>> These are tabs that have a calendar date picker, really convenient when
>>>>> adding a new event, less error prone than typing the date. The content
>>>>> of
>>>>> the startdate and enddate parts can then be used anywhere in your site.
>>>>> Let's say from some other page you wanted to list upcoming events. The
>>>>> code
>>>>> would look something like this:
>>>>>  <ul>
>>>>>  <r:find url="/events">
>>>>>    <r:children:each>
>>>>>       <r:if_later part="startdate">
>>>>>          <li><r:date for="startdate" format="%A, %B %d:" /> <r:title
>>>>> /></li>
>>>>>       </r:if_later>
>>>>>    </r:children:each>
>>>>>  </r:find>
>>>>>  </ul>
>>>>> This assumes your events are ordered by start date.
>>>>> Hope this helps as a starting place for some ideas.
>>>>> --
>>>>> marshal
>>>>>
>>>
>>>
>
>



-- 
Jim Gay
Saturn Flyer LLC
http://www.saturnflyer.com
571-403-0338

Reply via email to