01:37
<GitHub112>
radiant: master Jason Garber * b442352 (2 files in 2 dirs): Specify default cursor for expansion triangle. -
http://bit.ly/bjQLgO
02:11
<GitHub144>
radiant: master Jason Garber * 6d56656 (1 files in 1 dirs): Update spec to match meta_visible implementation. ... -
http://bit.ly/agZVnq
13:22
<GitHub76>
radiant: master John W. Long * c999a22 (15 files in 10 dirs): pulled over new styles from prototype; added a couple of missing keys to the english translation -
http://bit.ly/bK2ATi
14:55
<GitHub125>
radiant: master Jim Gay * 7460a25 (1 files in 1 dirs): sample extended cache_timeout -
http://bit.ly/c12t5D
15:31
<rdeshpande>
hey all
15:32
<rdeshpande>
is it possible to chain layouts? I have a layout for the home page, and i have a child page that has a common layout for all its children. however, these children pages also use the root layout. is there a way to chain these layouts so that I don't have to duplicate the code from the root layout?
15:33
<seancribbs>
rdeshpande: typically I would extract the common parts to snippets
15:33
<seancribbs>
and/or use conditionals in the layout to trigger the different options
15:33
<seancribbs>
it largely depends on how your design is structured
15:33
<rdeshpande>
right, but even if i use a snippet i have to include that snippet in every child page i create
15:33
<seancribbs>
short answer, no
15:34
<seancribbs>
no, you can use it directly from the layout
15:34
<rdeshpande>
ideally my client could just create a new page, and insert the content for the page in the 'body' part, and be done with it
15:34
<rdeshpande>
im trying to set up the parent page to support this
15:35
<rdeshpande>
do you mean using a conditional in the layout that shows the snippet under certain conditions?
15:36
<seancribbs>
for example, include the snippet only if certain page-parts exist
15:36
<seancribbs>
or if the url matches a certain pattern
15:36
<rdeshpande>
so, i have home page (using default layout) -> news -> article 1, -> article 2, etc.
15:36
<rdeshpande>
ah i see, okay
15:36
<rdeshpande>
so i can match on the '/news' url
15:36
<seancribbs>
exactly
15:37
<seancribbs>
additionally, you could rely on the inheritance of page parts
15:37
<rdeshpande>
what do you mean?
15:37
<rdeshpande>
ive never tried htat bfore
15:37
<seancribbs>
<r:if_content part="sidebar" inherit="true">…</r:if_content>
15:38
<rdeshpande>
hmm, i see how that could work
15:38
<rdeshpande>
but for htat, i would need default page parts on page creation based on the parent page
15:39
<seancribbs>
only if they need to change
15:39
<rdeshpande>
so, for children of 'news' i would want 'article' and 'image' as default page parts
15:39
<seancribbs>
yeah, another option is to do use something like the "templates" or "stereotypes" extensions
15:39
<rdeshpande>
i think it sounds like the url matching might be easiest at this point?
15:39
<seancribbs>
they let you define "content types" that have internal layout
15:39
<seancribbs>
probably
15:40
<rdeshpande>
i can see how my layout might get ugly if i do this, though
15:40
<seancribbs>
yes, it's a question of how much complexity you want to expose/hide to your editors
15:40
<seancribbs>
and how much you can deal with in the design
15:40
<rdeshpande>
i'd like to hide as much as possible as a very non-tech person is going to be using this
15:44
<rdeshpande>
do you happen to have an example of how to url match? i'm looking for an example in the wiki but can't find one
15:45
<rdeshpande>
foudn it, nevermind
20:05
<hardy_>
hi, I am trying to capture the output of tag.expand in my custom tag into a local variable to do some string replacements - can i do that?
20:16
<seancribbs>
hardy_: yes, tag.expand should return a string
20:16
<hardy_>
seancribbs: what if the encapsulated part is a radiant tag itself
20:17
<seancribbs>
tag.expand returns the result of whatever was parsed inside that tag
20:17
<seancribbs>
so by the time it reaches the return value of tag.expand, it's a plain-old string
20:17
<hardy_>
so if I have <r:mytag><r:date><r:mytag> and I do content << tag.expand in mt tag implementation
20:18
<hardy_>
I get the rendered data?
20:18
<hardy_>
or <r:date>
20:18
<seancribbs>
yes, but end your <r:date /> with a slash
20:20
<hardy_>
it actually works
20:20
<hardy_>
but i was falling into the cache trap
20:21
<hardy_>
it seems whenever I edit something in a tag I need to delete the content from tmp/cache and restart the server, does this sound right?
23:24
<datafirm>
I just updated to edge and am getting this error: undefined method `locale' for #<User:0xbb990c8>
23:24
<datafirm>
Do I need to run a migrate script or another update script when radiant is updated?
23:44
<datafirm>
That is the full error Im getting.