Well, it's surely faster... but I don't know about "cleaner". I personally 
don't like keeping data in a redundant form unless I'm really forced to by 
performance issues for instance.

-will

On 16.02.2010, at 23:23, Grégory Joseph wrote:

> 
> d) post process properties on saving, store found links in a specific, 
> multi-value, property (at page level maybe, instead of paragraph level), and 
> query that instead. (cleaner, faster, and you don't have to know where/how 
> links are encoded in your texts)
> 
> Not that it's trivial to implement at the moment, but it's something I'd like 
> to see happening at some point ... :)
> 
> Cheers,
> 
> -g
> 
> 
> On Feb 16, 2010, at 8:55 PM, Will Scheidegger wrote:
> 
>> 
>> Sure. 
>> 
>> How is that link stored
>> a) in a nodeData by itself using a "link" control
>> b) in a nodeData by itself using a "uuidLink" control
>> c) somewhere in the content created by a "fckEdit" control
>> 
>> What you do is you let the target page query the whole website tree for 
>> nodes pointing to itself. 
>> 
>> For case a) this could look like so:
>> - target page at /path/to/targetpage
>> - nodeData containing the link called "link"
>> - query: "SELECT * FROM nt:base WHERE link = '/path/to/targetpage'
>> 
>> For case b) the query could look like this:
>> - target page uuid is abcd-1234-efgh-5678-ij90
>> - nodeData containing the uuid of the linked page called "linkedPageUUID"
>> - query: "SELECT * FROM nt:base WHERE linkedPageUUID = 
>> 'abcd-1234-efgh-5678-ij90'
>> 
>> For case c) fckEdit stored both the handle (path) and the uuid in the text, 
>> e.g. like this:
>> <a 
>> href="${link:{uuid:{f0ac0fe9-62cd-4892-ada2-33d9cd43fa5a},repository:{website},handle:{/path/to/targetpage},nodeData:{},extension:{html}}}">Click
>>  here</a>
>> If you decide you should want to search for the uuid (what I would do), 
>> things could work like this:
>> - target page uuid is abcd-1234-efgh-5678-ij90
>> - nodeData containing the html code which somewhere contains the uuid of the 
>> linked page called "text"
>> - query: "SELECT * FROM nt:base WHERE CONTAINS(text, 
>> '%abcd-1234-efgh-5678-ij90%')
>> 
>> Cheers,
>> -will
>> 
>> On 16.02.2010, at 19:31, [email protected] wrote:
>> 
>>> 
>>> Assuming i have a paragraph with an internal link to a page, is there any 
>>> way from the other page to collect all the links pointing to?
>>> 
>>> Tx fof any advice
>>> 
>>> Luca
>>> 
>>> ----------------------------------------------------------------
>>> For list details see
>>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>>> To unsubscribe, E-mail to: <[email protected]>
>>> ----------------------------------------------------------------
>>> 
>> 
>> 
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to