Unstructured UI Template Substitution tags - PROBLEM
Hello
I'm trying to make a UI Template, but are having problems with the substitution tags.
I want to make a home-link, but with my own text such as "Take me home"
I've tried this approach:
Take me home
But as a result i get the standard icon for home, with the text "Home" under it
Can someone give me a hint how to solve this?
Regards
Per-Jarle
Hi,
Looks like you are doing something wrong. Try something like this.
<HTML dir=#DIRECTION#>
<HEAD>
<TITLE>#TITLE#</TITLE>
</HEAD>
<BODY leftMargin="0" rightMargin="0" topMargin="0" marginheight="0" marginwidth="0" class="PageBG">
oracle
<TABLE >
<TR>
<TD><IMG SRC="#IMAGE_PREFIX#pobtrans.gif" BORDER="0" WIDTH="0" HEIGHT="4"></TD>
</TR>
</TABLE>
#PAGE.SUBPAGELINKS#
#BODY#
</BODY>
</HTML>
A home link will appear which will take you to oracle.
Thanks,
Sharmila
Similar Messages
-
User interface template substitution tags problem
Portal 9.0.2.0.3 (Upgraded from 9.0.2.2.14A)
Hi all,
I am designing an unstructured user interface for use with my portal reports.
I have located a help document called 'Unstructured user interface template substitution tags' from the standard portal help pages.
My problem is that only a few of these tags are actually being substituted for their correct values when I run my reports. For example the help document says the #PAGE.CUSTOMIZEPAGE# tag should be substituted with HTML text hyperlink to the customize page dialog. On my report this tag and the majority of others are substituted with a blank line.
Any ideas?Same problem exists with the #TITLE# tag. However, SOMETIMES (I don't know how or why) the tag shows up. If I find out what the secret is, I'll let you know.
Anyone else have any input?
Pat Murray -
#PAGE.CUSTOMIZEPAGE# substitution tag problem on template based pages
I've created an Unstructured UI template that includes the #PAGE.CUSTOMIZEPAGE# substitution tag.
It works fine on a normal page, but it doesn't render the 'Customize' link if the page is based on a template. I know that I am authorized to customize the page, because a Portal Smart Link on the same page allows me to do just that. Does anybody know whether there are any issues with this substitution tag on template based pages? (I've used the #PAGE.EDITPAGE# tag in the same Unstructured UI Template with no problems on either normal, or template based pages.)
Oracle Portal Version 10.1.2.0.2.
I started this thread on the Portal - General forum, but now realise it's more relevant here.
Original thread: Customize Page link not rendered on template-based sub page.
Thanks
MatthewJust a guess, but it seems that the site uses server side includes (the shtml extension and there is a ssi include in your template). You will probably need a testserver running (like XAMPP) on your local system to preview this in a browser.
Grtz -
Unstructured user interface template substitution tags
Does anyone know where I can find a full list of substitution tags. An example of the tags I am talking about would be #BODY#
Click on the help link in Portal and search on:
template substitution tags
The link should provide you with a table of all supported #tags#.
Thanks,
Candace -
UI Template Substitution tags in a procedure
Version: 10.1.4
Is it possible to use Substitution tags in a procedure and call the procedure with in the UI template?
So the UI template will be:
<ORACLE>
BEGIN
Schema.procedureName;
END;
</ORACLE>
The procedure will be:
PROCEDURE procedureName as
BEGIN
htp.p('#USER.FULLNAME#');
END;
This way all the logic can be built in the procedure (taking advantage of the Substitution tags).
When I tried the above the Substitution tag is not rendered as it supposed to (display the User Full Name), but just displays it as raw HTML.
Is it possible/viable to use Substitution tags outside UI Templates?
Thanks.The specific example you are asking about could also be implemented without substitution tags. The following is from a pl/sql item I added in my footer. Hope it's of use to you:
declare
l_person_rec wwsec_person%rowtype;
begin
htp.print('<div class=PortletText1>');
l_person_rec := wwsec_api.person_info( wwctx_api.get_user_id() );
if (l_person_rec.first_name = 'PUBLIC') then
htp.print(l_person_rec.first_name);
else
htp.print(l_person_rec.first_name || ' ' || l_person_rec.last_name);
end if;
begin
htp.print('(' || wwsec_api.group_info(wwsec_api.get_defaultgroup()).name ||
exception when others then
null;
end;
htp.print('</div>');
end; -
All,
The list of "unstructured user interface template substitution tags" in the 3.0.8 online help is not complete, and it contains errors. Examples:
#PAGE.SUBPAGELINKS# is not documented.
#BANNER.NAVIGATION# should read #BANNER.NAVIGATOR#
#BANNER.CUSTPAGE# should read #BANNER.CUSTOMIZEPAGE#
Is updated documentation available? If not, please provide the information that you have.
Thanks,
Erik HagenSee http://hvirring.dk/portal/substitutiontags.asp for an updated "Unstructured user interface template substitution tags" help file (/help/wvttmptg.htm)
/Jesper -
Hi,
can I get the substitution tags value used by template
and assign this to a variable defined in a Unstructured template?
My problem is to manage a conditioned exit action
from a reports chain called by several Dynamic Pages
thanks
GiovannaHi,
You can use substitution tags only in unstructured templates. You cannot use them in dynamic pages.
Thanks,
Sharmila -
PL/SQL for Items / Substitution Tags
Is there any documentation listing how to retrieve the label / value / style for items (such as portal smart links) and substitution tags (used in page and content templates) using PL/SQL?
For me, using items is good just to get something up and running, but I find I just don't have enough control over the final look and feel (all those TABLE/TR/TDs just kill me!) to produce a quality result. I'm thinking of something like the instant portal, which looks great, but AFAIK is entirely coded in custom PL/SQL.
I've seen a few posts relating to "how do I get the XXX field", such as this one: Re: User first name, last name Information in welcome message so I guess there are some other users out there with the same problem.
If this doco does not exist anywhere, maybe we could start a thread here (or on a wiki somewhere???) and people could add individual cases as they use them, and that way build up a quick reference for anyone to use.
Cheers,
Barney<No idea what happened to the formatting there - same post again>
Nope - saw that.
As I understand it, these are only available within either page templates or content layout templates. For instance, I can't even see a way to produce the simplest of welcome strings:
Welcome #USER.FULLNAME# (#USER#)
(and I'd really like it if #USER# returned the user id in the case it is stored in the OID, rather than converting it to upper case!)
I can try to construct this out of items, but then I end up in a table/tr/td formatting hell.
In this specific case, I can achieve this by constructing a content layout which displays this HTML but not the actual item content, and using it in a region with a single dummy item (the USER fields are not documented in the content layout section, but do appear to work), but then try to add the logout URL to the mix and I'm stuck again.
Two solutions spring to mind to make this work:
1. Improve the HTML Portlet to understand / translate these substitution tags
2. Document how/where to get the info from. It's all on the database somewhere, and hence accessible via PL/SQL items.
I don't hold out much hope of seeing (1) in the near future, so was going for (2).
Cheers,
Barney -
HTML content layout substitution tags
Hi,
We have a multi-language Portal 10.1.4 and use HTML content layout substitution tags in a HTML Template. The problem is that we would like to use the ITEM.PUBLISHDATE.LABEL and the ITEM.UPDATESDATE.LABEL tags but the text rendered isn't exactly what we would like to get (f.e. in English it's 'Publish Date' and in French it's 'Date de mise à jour').
I looked in the documentation and found that the text rendered correspond to the display name of the attribut (not 100% sure of this). But, those attributs are in the Shared Objects and we can't modify them.
1. We would like to modify the display name of those attributs (both in French and in English) or find any other way to make it.
2. We also want to apply an other format to the date retreived with the ITEM.PUBLISHDATE.VALUE and the ITEM.UPDATEDDATE.VALUE tags.
Can someone help us with those issues ?
DavidYes, we added languages in the Translation tab of the shared object pagegroup properties.
-
Substitution tags in portal ver.2
Could anyone tell me if are the substituion tags (like #BANNER.GREETING.LABEL#) which were used in oracle portal version 1 (3.0.9) supported in oracle portal version 2 (9.0.2)?
Thanx a lot.You can use substitution tags in Unstructured UI templates and then use the templates in pages and other components. Go to templates from
Navigator->Providers->Shared Components->Templates -
I am having some troubles getting the #USER.FULLNAME# tag to work on my template. Doesn't mater what I tried the tag won't display any value. I made sure the user last name and first name were populated from looking at the WWSEC_PERSON$ table (both portal30 and portal30_sso schema). Is this a bug?
I am also interested to find out if there is a way I can create user-defined substitution tags. I sure can use the user-defined substitution tags on many instances.
ThanksHi,
This was a bug(replacement of fullname) which has been fixed in the 30984 patch release.
You cannot declare your own tags but you could use the already existing ones provided.See the context help for a list of tags ,portal supports.
Thanks,
Anu -
Complete URL in unstructured UI Template?
Hi,
Is it possible to retrieve complete url in unstructured UI Template in Oracle Portal 10.1.2?
I would like to pass it on as a parameter to pl/sql:
<ORACLE>
declare
v_complete_url varchar2(4000);
begin
v_complete_url := <some magic code to get url here>;
my_package.my_procedure(v_complete_url);
end;
</ORACLE>I have searched the forums, but have been unable to find a solution to this.
Can anyone help?
Regards,
HaavardUpdate:
Unfortunately the code above did not reveal the complete url, for some reason the parameters were left out (PPE interfering?)
The solution was to use owa_util to get all the parameters, unfortunately this method does not guarantee the order of the parameters, thus making it difficult to reconstruct the complete url. Anyway, I have worked around the problem, and are now using the following code (yes, I know i doesn't actually DO anything yet :-)):
<ORACLE>
declare
param_string varchar2(2000);
l_names owa.vc_arr;
l_values owa.vc_arr;
begin
portal.wwpro_api_parameters.retrieve (l_names, l_values);
htp.p('<!--');
htp.p('host: '||owa_util.get_cgi_env('HTTP_HOST'));
htp.p('script: '||owa_util.get_cgi_env('SCRIPT_NAME'));
htp.p('path: '||owa_util.get_cgi_env('PATH_INFO'));
htp.p('query: '||OWA_UTIL.GET_CGI_ENV('QUERY_STRING'));
for i in 1..l_names.count loop
htp.p('p: '||l_names(i) || '=' || l_values(i));
end loop;
htp.p('-->');
exception
when OTHERS then
htp.p('<!-- unstructured UI template code blew up! -->');
end;
</ORACLE>Regards,
Haavard -
Applying unstructured ui template to customize/edit pages
I need to customize the appearance of the header and footer of the edit/customization pages. I have created an unstructured ui template that I want to apply to all edit pages. However, I cannot find any place to do this. How do I change the header and footer of the edit pages?
nullI haven't been able to do this via the page templates.
What you can do is turn off the automatic rendering of headers and footers by the RenderManager by setting the tag
<renderCustomize>fasle</renderCustomize>
You can then write your own render header and footer methods and call these from your portlet code.
It works a treat.
Roger -
I've just hit the problem described in this thread:
Vertical right-hand tabs
regarding #TAB_CELLS# substitution being made only before #BOX_BODY#.
Did this turn out to be by design or is it an issue?
I've been interested in several threads relating to template substitutions, which spark the following questions:
Are all of the restrictions on which substitutions are supported "by design"?
Are they for underlying technical reasons or following more abitrary reasoning?
Are these restrictions likely to be changed in future releases?
I'm particularly interested in: #TAB_CELLS# not being restricted by #BOX_BODY# placement; #TITLE# being available anywhere in the page; #PAGINATION# etc "Before Rows" to allow pagination controls in <thead>/<tfoot> elements.Hello,
It's designed that way, since 99% of the time that's how it's used.
If you are trying to place content regions above tabs I suggest you use one of the #REGION_POSITION_NN# substitutions.
Regards,
Carl
blog : http://carlback.blogspot.com/
apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5 -
Where can I get an Html error report of all the syntax and tag problems?
Where can I get an Html error report of all the syntax and tag problems?
Thank you for your answer.
Where is the DW validation for me?
My files are in my computer so I don’t have an external URL.
File > validation > as xml = closes DW... Maybe because it is not a correct command for HTML,
And
Window > results > validation = gives a partial mistakes (e.g. shows an open tag without closing tag, but doesn’t show a closing tag without an open tag).
Thank you.
Maybe you are looking for
-
We have been a customer of Verizon for several years and frankly had a positive experience until I made one fatal mistake. I purchased something and should have just left things alone. In Dec. 2012/Jan. 2013 I purchased the newest 64 GB iPad retin
-
Is there a way to disable all vi front panels in Teststand?
I don't want any vi front panels to appear while my Testand program is running. My application uses a lot of vi's and I'm trying to avoid having to reset the front panel properties for each one. Is there a single option somewhere in Teststand to do t
-
Creative Cloud with Business Catalyst/Websites
I subscribed to a standard Creative Cloud membership yesterday.... On the Creative Cloud web page sidebar, there's a message saying 'Full Creative Cloud Membership comes with hosting for up to 5 sites....LEARN MORE >> That goes to a page which says "
-
My iPod classic is not recognized by my computer or iTunes
My iPod is not recognized by my computer or iTunes. It worked fine a few months ago but now it doesn't even sync. I tried everything from turning it on/off, reinstalling iTunes, checking the connectivity issues and etc. After going through the connec
-
I tried to update to IOS6 and then it asked me to connect to itune. The I got an error message when I restore my phone. right afte the phone crashed. When I tried to restart the phone with pressing the button on the top and the navigating botton fo