etp::revision_url (public)

 etp::revision_url object_id

Defined in packages/edit-this-page/tcl/etp-sc-procs.tcl

returns the url of an etp page revision

Parameters:
object_id (required)
Author:
Dave Bauer

Partial Call Graph (max 5 caller/called nodes):
%3 AcsSc.ftscontentprovider.url.etp_page_revision AcsSc.ftscontentprovider.url.etp_page_revision (private) etp::revision_url etp::revision_url AcsSc.ftscontentprovider.url.etp_page_revision->etp::revision_url AcsSc.ftscontentprovider.url.journal_article AcsSc.ftscontentprovider.url.journal_article (private) AcsSc.ftscontentprovider.url.journal_article->etp::revision_url AcsSc.ftscontentprovider.url.journal_issue AcsSc.ftscontentprovider.url.journal_issue (private) AcsSc.ftscontentprovider.url.journal_issue->etp::revision_url AcsSc.ftscontentprovider.url.news_item AcsSc.ftscontentprovider.url.news_item (private) AcsSc.ftscontentprovider.url.news_item->etp::revision_url ad_url ad_url (public) etp::revision_url->ad_url db_1row db_1row (public) etp::revision_url->db_1row db_string db_string (public) etp::revision_url->db_string

Testcases:
No testcase defined.
Source code:
    db_1row revision_url {}
  
    set package_url [db_string package_url {} -default "/"]
    
    return [string trimright "[ad_url]${package_url}${url}" "index"]
XQL Not present:
Oracle
Generic XQL file:
<fullquery name="etp::revision_url.revision_url">
    <querytext>
        select name as url, parent_id as package_id
        from cr_items 
	where live_revision = :object_id
	</querytext>
</fullquery>
packages/edit-this-page/tcl/etp-sc-procs.xql

PostgreSQL XQL file:
<fullquery name="etp::revision_url.package_url">
    <querytext>
select site_node__url(node_id) as package_url from site_nodes where object_id = (select package_id from cr_folders where folder_id= (select parent_id from cr_items where latest_revision = :object_id))
    </querytext>
</fullquery>
packages/edit-this-page/tcl/etp-sc-procs-postgresql.xql

[ hide source ] | [ make this the default ]
Show another procedure: