Re: Get URL of page via RQL

2009-07-31 Thread Stefan Buchali

We've had this requirement a lot of times, and discussed this often
with RedDot support, but we had to accept that retrieving the full url
is almost impossible.

It depends on the following:

- File name of the page itself
- File name of a target container page, if used
- Extension (if not given in the filename): project variant setting,
general publishing setting, or template setting
- Path, depending on language and project variant
- prefixes
- suffixes
- variant dependent file names (yes/no)? Also for entered file names
(yes/(no)

There is only one that is able to tell the url of a page: His name is
The Publishing Process :-)
He is the last one in a long queue of processes, and you cannot get
the file name with any of the processes (Render Tags, PreExecute,
RDExecute)...

Well, one chance: If you are a really really keen and passionate RQL
programmer, then you could find a way...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
RedDot CMS Users group.
To post to this group, send email to RedDot-CMS-Users@googlegroups.com
To unsubscribe from this group, send email to 
reddot-cms-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~--~~~~--~~--~--~---



Re: Get URL of page via RQL

2009-07-31 Thread RustyLogic

There is a way to do it in RQL (I use it in one of our projects). My
method makes a few assumptions which may not be appropriate for others
(e.g. uses the default project and language variant, assumes an aspx
file extension etc etc).
I'm pretty sure its present in the last upload of my library to this
forum. The method is Page.PublicationPath which returns what I'm
after.
Take a look, it may help you out - you could easily make a more
parameterised method filling in the blanks that Stefan has mentioned.


On 31 July, 08:27, Stefan Buchali stefan.buch...@gmail.com wrote:
 We've had this requirement a lot of times, and discussed this often
 with RedDot support, but we had to accept that retrieving the full url
 is almost impossible.

 It depends on the following:

 - File name of the page itself
 - File name of a target container page, if used
 - Extension (if not given in the filename): project variant setting,
 general publishing setting, or template setting
 - Path, depending on language and project variant
 - prefixes
 - suffixes
 - variant dependent file names (yes/no)? Also for entered file names
 (yes/(no)

 There is only one that is able to tell the url of a page: His name is
 The Publishing Process :-)
 He is the last one in a long queue of processes, and you cannot get
 the file name with any of the processes (Render Tags, PreExecute,
 RDExecute)...

 Well, one chance: If you are a really really keen and passionate RQL
 programmer, then you could find a way...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
RedDot CMS Users group.
To post to this group, send email to RedDot-CMS-Users@googlegroups.com
To unsubscribe from this group, send email to 
reddot-cms-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~--~~~~--~~--~--~---



Re: Get URL of page via RQL

2009-07-31 Thread Ken

Thanks RustyLogic,

That's exactly what I need.

Cheers,
Ken

On Jul 31, 8:56 am, RustyLogic j...@rustylogic.com wrote:
 There is a way to do it in RQL (I use it in one of our projects). My
 method makes a few assumptions which may not be appropriate for others
 (e.g. uses the default project and language variant, assumes an aspx
 file extension etc etc).
 I'm pretty sure its present in the last upload of my library to this
 forum. The method is Page.PublicationPath which returns what I'm
 after.
 Take a look, it may help you out - you could easily make a more
 parameterised method filling in the blanks that Stefan has mentioned.

 On 31 July, 08:27, Stefan Buchali stefan.buch...@gmail.com wrote:

  We've had this requirement a lot of times, and discussed this often
  with RedDot support, but we had to accept that retrieving the full url
  is almost impossible.

  It depends on the following:

  - File name of the page itself
  - File name of a target container page, if used
  - Extension (if not given in the filename): project variant setting,
  general publishing setting, or template setting
  - Path, depending on language and project variant
  - prefixes
  - suffixes
  - variant dependent file names (yes/no)? Also for entered file names
  (yes/(no)

  There is only one that is able to tell the url of a page: His name is
  The Publishing Process :-)
  He is the last one in a long queue of processes, and you cannot get
  the file name with any of the processes (Render Tags, PreExecute,
  RDExecute)...

  Well, one chance: If you are a really really keen and passionate RQL
  programmer, then you could find a way...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
RedDot CMS Users group.
To post to this group, send email to RedDot-CMS-Users@googlegroups.com
To unsubscribe from this group, send email to 
reddot-cms-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~--~~~~--~~--~--~---