Reference Link

44 views
Skip to first unread message

Andry

unread,
Aug 18, 2011, 2:00:19 AM8/18/11
to RedDot CMS Users
Hi guys,

Could anyone please tell me how I can reference a link at SmartEdit?

In SmartTree I know you can just double click the lst_Links to store
it in the clipboard and click Reference Link in clipboard :)

The link list is at everyone or group is always empty.

Cheers,

Andry

kimdezen

unread,
Aug 18, 2011, 3:41:31 AM8/18/11
to RedDot CMS Users
Since this an administrative task its not possible via SmartEdit -
only via SmartTree

Nothing stopping you from writing a plugin to do this which can be
exposed via SmartEdit

kimdezen

unread,
Aug 18, 2011, 3:44:37 AM8/18/11
to RedDot CMS Users
perhaps i should re-phrase that and say a 'developer' task, rather
than adminstrator. The CMS just doesnt enable you to add shortcuts to
links within the clipboard in SmartEdit mode.

Tony Gayter

unread,
Aug 18, 2011, 4:00:10 AM8/18/11
to reddot-c...@googlegroups.com
Or upgrade to v10, you can do it in that with the slide in panels  (assuming your on 7.5)

Andry Poernomo

unread,
Aug 18, 2011, 4:17:29 AM8/18/11
to reddot-c...@googlegroups.com

Hi Tony,

 

I’m on version 10. How do I do it with slide in panels?

 

Andry

--
You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/lOqzEvHkfF4J.
To post to this group, send email to reddot-c...@googlegroups.com.
To unsubscribe from this group, send email to reddot-cms-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reddot-cms-users?hl=en.

Andry Poernomo

unread,
Aug 18, 2011, 4:23:25 AM8/18/11
to reddot-c...@googlegroups.com
Hi Kim,

Say I have an image gallery and all image pages are in lst_Links of the
gallery page. How can I refer this link from another page using SmartEdit?

The user has to be able to create image galleries and refer the images at
other pages.

You mentioned plugin. How does this work?

Cheers,

Andry

--

You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.

Tony Gayter

unread,
Aug 18, 2011, 4:28:37 AM8/18/11
to reddot-c...@googlegroups.com
Just open the page for edit, then right click. The option to add to clip board is on there. and the actual clipboard is one of the slide out panels.

Andry Poernomo

unread,
Aug 18, 2011, 4:42:14 AM8/18/11
to reddot-c...@googlegroups.com

Hi Tony,

 

OK, but I can only put pages in the clipboard. I can’t put lists in it.

 

Andry

 

From: reddot-c...@googlegroups.com [mailto:reddot-c...@googlegroups.com] On Behalf Of Tony Gayter


Sent: Thursday, 18 August 2011 4:29 PM
To: reddot-c...@googlegroups.com

--

You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group.

To view this discussion on the web visit https://groups.google.com/d/msg/reddot-cms-users/-/sjd8-R-UiG0J.

kimdezen

unread,
Aug 18, 2011, 8:37:33 PM8/18/11
to RedDot CMS Users
Yeah unfortunately the v10 clipboard in SmartEdit is only limited to
pages

kimdezen

unread,
Aug 18, 2011, 8:43:29 PM8/18/11
to RedDot CMS Users
Not sure what level of RQL expertise is, but basically you will need
to write a script (that can be executed automatically or by users
manually via SmartEdit) that will:

1. determine the guid of the link element you want to reference
2. determine the guid of the link element you want to assign the
reference too

both of these can be determine using the following RQL query:
<IODATA loginguid="[!guid_login!]" sessionkey="[!key!]">
<PAGE guid="[!guid_page!]" >
<LINKS action="load"/>
</PAGE>
</IODATA>

3. assign the reference

<IODATA loginguid="[!guid_login!]" sessionkey="[!key!]">
<LINK action="assign" guid="[!guid_link!]">
<LINK guid="[!guid_link_verweis!]"/>
</LINK>
</IODATA>

There are plenty resources online (and within this group) explaining
how to execute RQL queries if you need help.

Kim

silveraxe

unread,
Aug 23, 2011, 9:54:20 AM8/23/11
to RedDot CMS Users
Hi,

> Not sure what level of RQL expertise is, but basically you will need
> to write a script (that can be executed automatically or by users
> manually via SmartEdit) that will:
>
> 1. determine the guid of the link element you want to reference
> 2. determine the guid of the link element you want to assign the
> reference too
>
> both of these can be determine using the following RQL query:
> <IODATA loginguid="[!guid_login!]" sessionkey="[!key!]">
>   <PAGE guid="[!guid_page!]" >
>     <LINKS action="load"/>
>   </PAGE>
> </IODATA>
>
> 3. assign the reference
>
> <IODATA loginguid="[!guid_login!]" sessionkey="[!key!]">
>   <LINK action="assign" guid="[!guid_link!]">
>     <LINK guid="[!guid_link_verweis!]"/>
>   </LINK>
> </IODATA>

Does this work for you correctly in CMS 10? We have some issues with
the page cache after referencing the link. The link is shown in
SmartTree but the page cache isn't cleared for this page. So we have
to clear the page cache of the project (the single page is not
sufficient) to get the link working.

Bets,
Hilmar

Jian Huang

unread,
Aug 23, 2011, 10:03:15 AM8/23/11
to RedDot CMS Users
Hi,

Are you using rendertag to retrieve the content of the reference?

-Jian

silveraxe

unread,
Aug 23, 2011, 12:13:10 PM8/23/11
to RedDot CMS Users
Hi,

>
> Are you using rendertag to retrieve the content of the reference?

We use RQL to get the Link Guid to reference and to set the reference.
We don't use rendertags for that.

Best,
Hilmar

Jian Huang

unread,
Aug 23, 2011, 6:38:49 PM8/23/11
to RedDot CMS Users
Hi,

Does the issue occur if the link is referenced regularly via option in
action menu?

If not, you can use RQLConsole to troubleshooting the RQL.

http://www.solutionexchange.info/RQLConsole.htm

-Jian

kimdezen

unread,
Aug 23, 2011, 9:02:02 PM8/23/11
to RedDot CMS Users
Come to think of it, i do recall experiencing this in the past (its
been a while since ive had to automatic link references.. so cant dig
up any code samples at the moment)

having a look at the log, the CMS executes this command to perform a
reference:

<CLIPBOARD action="ReferenceToLink" guid=" target link guid "
type="link" descent="unknown" addition="">
<ENTRY guid=" source link guid " type="link" descent="ioDescent" />
</CLIPBOARD>
Reply all
Reply to author
Forward
0 new messages