Dynamic breadcrumbs
I want that the breadcrumbs in my UIX aplication grows dynamically while you are visiting pages and i would like specify the text to show.
So, i have created an UIX template for all my pages like this:
<provider>
<data name="breadCrumbs">
<method class="view.BreadCrumbs"
method="obtieneListaLinks"/>
</data>
</provider>
<breadCrumbs>
<contents childData="${uix.data.breadCrumbs}">
<link text="${uix.current.titulo}" destination="${uix.current.URL}"/>
</contents>
</breadCrumbs>
with java class BreadCrumbs.java with a method:
public static Object obtieneListaLinks(RenderingContext context, String namespace, String name)
BajaContext ctx=BajaRenderingContext.getBajaContext(context);
String pagina = new String(ctx.getServletRequest().getRequestURL());
Page page=BajaRenderingContext.getPage(context);
String nombrePagina = page.getName();
//Se crea un nodo de la lista con la dirección actual
HashMap pareja=new HashMap();
pareja.put("titulo", nombrePagina);
pareja.put("URL", pagina);
int indice=listaLinks.indexOf(pareja);
//Se recorre la lista de links para ver si el nodo ya existía
if (indice>-1)
//Y si existía, se elimina ese nodo, y todos los siguientes
for (int i=listaLinks.indexOf(pareja); i<listaLinks.size(); indice++)
listaLinks.remove(i);
//Se añade al final de la lista el nodo actual
listaLinks.add(pareja);
//y por último el nodo ficticio vacío que no se visualizará
listaLinks.add(a);
return listaLinks;
But I can´t obtain any page's property. If i try to do a "page.getProperties()" i get null.
What's wrong? Am I trying to reinvent the wheel?
Thank's in advance
Carlos
PD. JDev 10.1.2
OK, I have a followup question...I thought that maybe if I could keep track of the previous page I might be able to do something with the breadcrumbs. So I created an Application Process that fires on Submit.
The problem is the process never runs. I've done a lot of testing and the application level process does not fire. If I change the process to run on load, it runs fine. I created a link on a column and use that to link to the page on my interactive report.
Can anyone tell me why my application level process is not being executed? Oh, and let me know if I am on the right track to create dynamic breadcrumbs :)
Thanks,
-- John
Similar Messages
-
How do we create Dynamic Breadcrumbs
Hi All,
I have 10 tabs, a->b->d....->j. which is having two master pages like 1->2->a->b->........->j
I have to go to 5th tab from two different pages, How can I create breadcrumbs dynamically?
it should show like this 1->2->abc(new page)->5th tab
Please give me some suggestions.
Thanks in advance.I do not have an online example. In my case, I had one page I had to display different breadcrumbs on and navigate to another page from there, e.g.
Main page -> Page with dynamic breadcrumb -> Another page
You populate a breadcrumb item with a breadcrumb value on a page with a dynamic breadcrumb depending on your scenario or conditions, e.g.
Main page -> This is my first option -> Another page
or
Main page -> This is my second option -> Another page
====
ON LOAD
if some condition then
:breadcrumb := 'This is my first option';
else
:breadcrumb := 'This is my second option';
end if; -
I am trying to create a site with dynamic breadcrumbs (that
is, breadcrumbs that don't need to be manually coded on each page).
Is there a simple way to do this? I saw a tutorial from Stanford
School of Medicine showing how to add breadcrumbs as Server Side
Includes, but the SSI still needs to be manually created and added
to each page.
I also looked at the free MX Breadcrumbs extension from
InterAKT but this is a database driven extension that is not
intuitive or easy to use.
Does anyone know of a easy alternative or a user friendly
Extension for DW8?
Thanks,
MilomanJavascript is client-side scripting. PHP is server-side
scripting. There's
a universe of difference in what you can do with those two.
> Why did you
> decide for PHP?
Because you cannot disable it.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"milo2man" <[email protected]> wrote in
message
news:eas5j1$cc3$[email protected]..
> >I don't know about a JavaScript solution because I'd
never use it for
> >something like navigation. The way I normally do
breadcrumbs is to use a
> >directory structure that establishes the hierarchy
of pages. Then I use
> >PHP to examine he current page's url and break it
into breadcrumbs.
>
> What are the pros and contras of using JavaScript versus
PHP? Why did you
> decide for PHP?
>
> I already have the directory structure containing the
hierarchy of pages.
> Is
> there an easy way to use PHP to examine he current
page's url and break it
> into
> breadcrumbs? Can you point me to a tutorial?
>
> Thanks,
> Miloman
>
>
>
> -
UIX/XML BC4J - Dynamic breadcrumbs
We have a page that contain a dynamic breadcrumbs (stored in session) that is populated at runtime with the PageDescription class. We need to add the next element to session from a value of a BC4J views. How we can interact with the RegistryDefs from the PageDescription to do this?
Anyone can explain the sequence of the rendering phase, especially when is executed the RegistryDefs and the DataBinding to interact with it from the PageDescription?We have implemented a class that extends the page description and must add the link to the breadcrumbs using a description of the current element displayed (for example if the page display information about an employee, its name and surname must appear on the breadcrumbs).
To do this, we have used the procedure described in chapter 16 (dynamic structure for uix pages), subclassing the method getRootUINode: the problem encountered is that we need to use a view object to obtain the description of the link to be added to breadcrumbs, for example with this registry def:
<bc4j:registryDef>
<bc4j:rootAppModuleDef name="TipoPunteggioViewAppModule"
defFullName="com.websiteitalia.valutazioni.modules.TipoPunteggioAppModule"
configName="TipoPunteggioAppModuleLocal"
releaseMode="stateful" >
<bc4j:viewObjectDef name="TipoPunteggioView" >
<bc4j:rowDef name="UpdateTipoPunteggioView" autoCreate="false" >
<bc4j:propertyKey name="keyTipoPunteggio" />
</bc4j:rowDef>
</bc4j:viewObjectDef>
<bc4j:viewObjectDef name="DecodeStatoView"/>
</bc4j:rootAppModuleDef>
</bc4j:registryDef>
The servlet binding utils seems to be useful in event handler java code but not in PageDescription, because dosn't require the view name, but uses the view object currently scoped!
How we can do?
About the rendering process, it is useful an explanation of the sequence of method that are called from the invocation of the page to its visualization to the browser (sequence diagram?) with a summary of the data structure in memory and/or the classes that interact with it.
For example I cant resolve this problem because I dont know when registry def is loaded, when can I interact with it in the processing phase and which classes are involved. -
How to do dynamic breadcrumbs?
I would like to be able to do dynamic breadcrumbs ... the dialog to create a breadcrumb region sets up a static hierarchy of pages. In my case I have a cluster of 4 screens which are "subroutine" screens that are transferred to from multiple query screens. Hence, when I'm on a "subroutine" screen, I'd like the breadcrumb display to reflect the query screen from where the most recent "transfer" originated.
Example:
P1>P40>P41>P92 or P93 or P94 or P95
P1>P20>P21>P91>P92 or P93 or P94 or P95
etc.
Any suggestions? BTW, I'm currently using rel 2 of ApplExpress.
Thanks,
George SundellHere is an old post with some information about creating a custom lookup field:
Re: Lookup properties not configured correctly
And this will list you all the past posts that contain "Lookup Query" which is a required property in creating the lookup.
https://forums.oracle.com/forums/search.jspa?threadID=&q=%22Lookup+Query%22&objID=f47&dateRange=all&userID=&numResults=15&rankBy=10001
-Kevin -
Create a dynamic breadcrumb in a interactive pdf?
Hello,
I have an interactive pdf set up in Indesign. I have many pages that are sorted in categories, and each category has a separate contents page.
At the moment I have a manual breadcrumb, so they know where they have come from.
However some of my pages are in two categories. Meaning they can come from different places. I preferably don't want to have to create two pages the same but with different breadcrumbs, so is there a way I can generate this automatically?
I hope that made sense.
Thank for your help in advance.Hi, sorry too, but just like ashloucreative
I don't see how to put the code, and your answer did not make it clearer for me (I( don't use acrobat pro really often to be honest.)
THanx for your help !WHen you say "Add it as the MouseUp action of the button." : how must this button be created ? As a regular one ? DOes not work for me in that case ( ? ). -
Dynamic breadcrumbs in UCM + Site Studio
I have to develop site, in which there are many ways to get to the page, i.e. there is many site structures.
For example, I can get to "products" page with in 2 different ways:
root->about us->services->products
root->solutions->products
I need the breadcrumbs to display the actual path the user navigated to the "products" page.
One solution I see is to create two different sections for "products", but I do not like it.
Is there any other way to achieve this?
ThanksWhen you create a site in site studio as you described those are actually two different parts of the site hierarchy.
A->B->Products
A->Products
In this case these two products pages are different pages in the site hierarchy. Unless you are redirecting from one to the other somehow. Now, in both site nodes you can configure the same page template, with the same regions, content, etc., and effectively make the two site node pages look exactly the same. In that case the regular breadcrumbs would still accomplish what you want to of showing the two different paths (because it really IS two different path options).
Maybe I'm missing the point of the question, if so, I apologize!
-Jason Stortz
http://www.corecontentonly.com
http://www.redstonecontentsolutions.com -
Dynamic, multi-level navigation
Hello~
After doing quite a bit of Google research, I am not really any closer to discovering a good tutorial for building both the backend and frontend for a dynamic, database-driven navigation system through ColdFusion. I am looking for a start on a system that will, ideally, be able to create both a navigation bar and dynamic breadcrumbs throughout the site. I am not really sure how to structure my database tables, as there are going to be atleast five levels of pages! Any suggestions would be very helpful, thank you!
KCWell, I found at least part of my answer here: http://forums.adobe.com/message/2200187#2200187
I haven't tried breadcrumbs yet, but the nested lists work beautifully! -
Can breadcrumb navigation be built in DW using the Behaviors panel?
I don't know enough javascript to code breadcrumb navigation, and I'm hoping that there is way
to create breadcumb navigation using the behaviors panel, or some other feature in DW.
Thanks!Hi,
there are some possibilities to insert breadcrumbs, one of them is a download extension from
http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=breadcrumbs&search_exchange=3& search_category=-1&search_license=&search_rating=&search_platform=0&search_pubdate=&Submit =Submit&num=10&startnum=1&event=search&sort=0&dummy_tmpfield=
or
http://www.kaosweaver.com/extensions/details.php?id=6
or if you need only some informations you could look here:
Breadcrumb
http://irt.stanford.edu/webauthor/training/dreamweaver/breadcrumbs.html
http://www.devarticles.com/c/a/Web-Services/How-to-Build-a-Dynamic-Breadcrumbs-Extension-f or-Macromedia-Dreamwever-MX/1/
http://www.webstool.de/de/tipps_navig_breadbeisp.html (German language, but comprehensibly anyway I think)
Hans-G. -
Conditional branching and breadcrumbs?
Hi all,
What is the best way to do conditional "back/cancel" branching, as well as conditional breadcrumbs? I seem to remember seeing a blog posting somewhere, but can't find it now that I need it.
I have multiple ways to enter a certain page. For instance, pages 3, 5, and 7 all can branch to page 10. I have a cancel button on page 10, and breadcrumbs. On page 10, I'd like the cancel button to branch back to whichever page called it, as well as have the breadcrumbs properly show the page taken to get to page 10. I'm not quite sure of the best method to do this.
Any thoughts/help is greatly appreciated!
Thanks
DavidLee McCann wrote:
Dmetri's blog. See this blog: http://dgielis.blogspot.com/2008/03/dynamic-breadcrumb-in-apex.html
For a branch, you can just specify a page item - like &ITEM_NAME. - to branch to.
Ta,
Trent -
hi all,
Can anyone help me with the process of creating a multilingual site with dynamic breadcrumbs and site navigation??
I've been looking into the VCR but some things are missing from the CMS point of view
- how can I manage multilingual content?
- how can I create a hierarchical menu from a document structure?
I'm an absolute newbien on portal so clear indications/recommendations are very very welcome.
or perhaps a link to a tutorial..?
Thanks,
Aldo ;)Hi,
There is a concept in portal called internalization which takes care of these problems.
http://java.sun.com/docs/books/tutorial/i18n/intro/quick.html
http://edocs.bea.com/workshop/docs81/doc/en/portal/taglib/navi18nl10n.html
regards,
Jerry Ragland. -
I have a list of link buttons that become visible as things
in a tilelist are clicked on (ie a dynamic breadcrumb) and the
label property of each are changed based on what in the tilelist
has been clicked on. I am having serious problems trying to
position these things based on the size of the label. If I create
an HBox then there is too much space in-between the link buttons
and I can't figure out how to get rid of it. If I go without an
HBox and just set the x position based on the previous link button
label length that doesn't work either because [label
id].label.length returns just the length of characters in the label
and not it's length in pixels. I also tried [label id].width but
this value appears to be the largest width the link button has been
set to thus far. So if the link button gets assigned a label of 20
characters and then later on in the program it gets assigned one
with only 5 then the width property still remains 20. Anyone got
any idea how to either convert length in characters to length in
pixels OR reduce the spacing between items in an HBox. I have tried
setting the paddingleft to 0, the width of child items to 0% the
width of child items to 0, you name it I feel like I’ve tried
it. But it's almost like the HBox has a built in minimum padding
that I can't seem to figure out how to change.Bingo, I got it. Thanks Flightguy for your padding idea
because that did come into play I believe. I included the complete
code for a simple version below. I knew it was a somewhat simple
solution.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
public function clickgroup(event:MouseEvent):void{
lb1.visible=true;
lb1.label="Home";
lbl1.visible=true;
lbl1.text="> Grp Name";
public function clickalbum(event:MouseEvent):void{
lbl1.text=">";
lb2.visible=true;
lb2.label="grp name";
lbl2.visible=true;
lbl2.text="> album name"
lbl1.width=12
public function clickback(event:MouseEvent):void{
lb1.visible=true;
lb1.label="Home";
lbl1.visible=true;
lbl1.width=200;
lbl1.text="> Grp Name";
lb2.visible=false;
lbl2.visible=false;
]]>
</mx:Script>
<mx:Canvas width="455" height="370" x="10" y="10"
backgroundColor="#c0c0c0">
<mx:HBox horizontalGap="0">
<mx:LinkButton id="lb1" label="Home" paddingLeft="0"
paddingRight="0" visible="false"/>
<mx:Label id="lbl1" visible="false" text=">"
paddingTop="2" />
<mx:LinkButton id="lb2" visible="false" paddingLeft="0"
paddingRight="0"/>
<mx:Label id="lbl2" visible="false" paddingTop="2"/>
</mx:HBox>
<mx:Button label="click album" click="clickalbum(event);"
x="10" y="93"/>
<mx:Button label="click group" click="clickgroup(event);"
x="10" y="63"/>
<mx:Button label="click back to group"
click="clickback(event);" x="10" y="123"/>
</mx:Canvas>
</mx:Application> -
How Do I Install/Setup This Taglib
I downloaded a taglib from http://dist.osjava.org/trail-taglib
The taglib allows a dynamic breadcrumbs trail to be built up and records a user's movements for the entire session, while providing a normalized version to display to the user.
I saw a 'trail-taglib-0.2.jar' file under the root folder trail-taglib-0.2. I searched for instructions for setting the taglib up but only find a statement saying "the tld file is a part of the jar file."
And I also saw:
>
The trail taglib mainly comes down to two tags. The first is used to add a page into the trail, and the other is used to to list the current trail.
For example:
< %@ taglib prefix="trail" uri="http://www.osjava.org/taglibs/trail-1.0" % >
< trail:push label="List Categories"/ >
< trail:list delimiter=" - & gt; "/ >
I am disoriented. For example, I have an existing J2EE application that runs well. How do I incorporate this taglib into my J2EE application to display bread crumb trails in my JSPs?
I understand that I have to put in each of the JSP the following code:
< %@ taglib prefix="trail" uri="http://www.osjava.org/taglibs/trail-1.0" % >
< trail:push label="List Categories"/ >
< trail:list delimiter=" - & gt; "/ > But, where do I put the 'trail-taglib-0.2.jar' ? What else do I have to do to set it up? Thanks for your help.As a start, put the jar file in the WEB-INF/lib directory of your web application.
-
How to reference a saw:param in javascript
Hi everyone,
Not sure if this is possible but I have a need to reference the value computed in <sawm:param name="addViewState"/>. Does anyone have experience referencing these values?
I've been trying to work on a way to display a dynamic breadcrumb using OBIEE's DrillBack function. That function requires two values, a viewpath and a viewstate. I can get the view path but I've been stuck on retrieving the viewstate for about the last week. After a bit of digging, I found the above reference in dashboardtemplates.xml.
I know Sunil has implemented a static version of a breadcrumb using navigate, but I was hoping to achieve something more dynamic.
thanks for the help!
-JoeI would recommend using Firebug to determine what functions are called during the standard drill-down. Replace the existing onClick with your own new onClick that executes both your custom code and OBIEE's code.
I did something similar recently when making a modification to writeback functionality. I needed to display a select list for my writeback instead of a text box. I created a Answers field with the html code for the select list. This included a call to a custom function triggered onClick. The custom function wrote the selected value from the select list to the text box. This didn't work initially because OBIEE was making use of the onFocus and onChange function of the writeback text box. These functions needed to be called in order for the writeback to execute properly. My behind the scenes assignment to the text box was not triggering the onFocus and onChange functions like it needed to. My solution was to determine what code was executing from onFocus and onChange and then execute it explicitly from my custom function.
Here's an excerpt from my custom onClick function from the select list. The functions WBFocus and WBChange are what OBIEE was executing onFocus and onChange for the writeback text box.
if( aElm.type == "text" && aElm[i].size ==50) {
WBFocus(event);
aElm[i].value="n/a";
WBChange(event); -
Version: 4.1.1.00.23
Hey,
I need to capture the tab name when it is clicked. Is there any way to do this??
I created dynamic breadcrumbs and when the user clicks the tab to enter a page the application items used to contain the values for the breadcrumb path are not being cleared. So when the user clicks a tab to go into the page directly the breadcrumb path is the last entry created in the trail, but it should be the only entry in the breadcrumb path.
eg: User is on Page 1 and clicks a button bringing them to page 2 and the breadcrumb will be Page 1>Page 2.
However, if the user clicks a tab to go directly into page 2, the breadcrumb should just be Page 2 and it's showing Page 1 > Page 2 and this is because the application items holding the values are not being cleared.
Does someone have a solution to this?
Thanks.
Parth.psampat wrote:
Version: 4.1.1.00.23
Hey,
I need to capture the tab name when it is clicked. Is there any way to do this??
If it's a standard tab then the value of the built-in substitution string REQUEST is set to the tab name when it is clicked.
Alternatively, query the APEX_APPLICATION_TABS view using the page ID in a Before Header computation/process in the destination page, something like:
select
aat.*
from
apex_application_tabs aat
where
aat.application_id = :app_id
and ( aat.tab_page = :app_page_id
or instr(
',' || aat.tab_also_current_for_pages || ','
, ',' || :app_page_id || ',') > 0)
Maybe you are looking for
-
Error while transport of transformations
hi i am transportation transformations from dev to acceptance i chnaged write optimized dso to standard dso? that is reason i am collecting again into new request and move to acceptance i am using 4 flobal system a7a ana n6a f7a buy while moving i am
-
HT4743 cannot connect my account information to apple tv
i am trying to purchase a tv show i updated my account and it still asking me to update it on the computer i did and the same thing
-
Just picked up a micro korg got a ?
how do i play/record it thru logic ive been using an m audio midi but i have no idea how to run this thru logic some one please help me out
-
How can i get firefox to remember my user name and password when useing email?
Everytime i want to log into my email,i have to type in my details.I used Firefox before on a previous pc and i was asked if i would like Firefox to remember these.That is not happening this time.Please can you help?Thanks
-
Need help for new message type for PO archiving
Hello All I have configured new message type ZARR for PO archiving process. After configuring all the steps this condition is not getting picked to by itself. And after maintaing it manually it is giving red flag without any error message. Here I a