Open a terminal or SSH to your instance of Radiant, and the run 'script/console' from the prompt to get the "console".

In those cases you gave, you probably need to provide a complete URL to the page you want to select, like so:

<r:find url="/projects">...

However, in the case you have shown, it would make more sense to just put '/projects' and '/papers' directly in the href attribute.

Sean

Kendall Clark wrote:
On Tue, Aug 19, 2008 at 12:05 PM, Sean Cribbs <[EMAIL PROTECTED]> wrote:
Kendall,

Around 0.6.2 or so, we added optimistic locking to all content models (page,
snippet, layout) to prevent multiple users from overwriting each other's
changes unknowingly.  Make sure no one is logged into the admin interface,
and then do this in the console:

[Page, Snippet, Layout].each do |model|
 model.update_all(:lock_version => 1)
end

See if that clears things up.  >

Sure, but I'm a bit confused: what's the console?

Can you provide an example of where <r:find> doesn't work?

Sure, see http://clarkparsia.com/ or http://pellet.owldl.com/ -- the
topnav of both sites looks like this:

...
        <li id="nav-3" <r:if_content part="projects"> class="selected" 
</r:if_content>>
<a href="<r:find url="projects"><r:url/></r:find>" title="Our
Projects" accesskey="s"><em>S</em>oftware &amp; Services</a>
        </li>
        <li id="nav-4" <r:if_content part="papers"> class="selected" 
</r:if_content>>
<a href="<r:find url="papers"><r:url/></r:find>" title="Our Papers"
accesskey="p"><em>P</em>apers</a>
        </li>

>From the / page, these all work fine...But from any child page of /,
like /pages, the other links don't work at all. You can see it live on
either site.

Cheers,
Kendall
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to