get link reference bug?

Andy <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Hi All,

One of my authors encountered a bug in the get link reference lookup screen 
(Products/Silva/views/edit/hyperlink_lookup.pt).  We're running Silva 1.1.1.

We have a Silva Folder containing just assets (specifically silva images).  
When using the get link reference tool in the forms editor (paragraph or 
image widget), the 'place reference' button doesn't appear at the bottom of 
the content list.

Looking at the hyperlink_lookup template, the button only appears if there are 
publishables.  Since there are no publishables, I got no button.  Changing 
the button to be:
                <input class="transport"
                  type="button"
                  name="place"
                  value="place reference..."
                  title="insert a reference to this asset: alt-p"
                  accesskey="p"
                  i18n:attributes="title value"
                  onclick="setReference();return false;"
                  tal:condition="python:publishables or assets"
                />

(adding 'or assets') fixes the issue.

Just wondering if this has been fixed in a newer release of Silva?  It appears 
not, since the cvs head still has the old code.

I can create an issue for this, if you'd like.

Cheers,
Andy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.