Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me
Excerpts from Jonathan Khattir’s message of Mon Jul 02 10:03:55 -0400 2012:
Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Hi Jonathan,
Unfortunately (as you’ve likely seen) $Title is set on the pages
themselves, as an argument passed directly to Header, while the Footer
is included from lib/RT/Interface/Web.pm, much higher in the stack. To
change this would break lots of things which rely on the existing
behavior. I don’t recommend it.
Why do you want to put the page title in the Footer? Could you
accomplish the same thing by putting eg. the m->request_comp->path in
the Footer instead?
Best,
Hi, I would like to known how i can change the place of the title of current
page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me
The easiest way probably is to use JS here. With jQuery it’s quite
easy to relocate or duplicate HTML.
Best regards, Ruslan.
I would like put the title in div=body define in /Element/PageLayout
I don’t know syntax, i read the masonbook but i don’t understand.
ImageShack - Best place for all of your image hosting and image sharing needs Jonathan Khattir jonathan.khattir@mobiquithings.net
Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me
Tried the following javascript and it worked. You can test in java
script console of your browser. Use a callback in Header to put it on
RT pages.
jQuery(‘#header h1’).prependTo(‘#body’);On Tue, Jul 3, 2012 at 11:33 AM, Jonathan Khattir jonathan.khattir@mobiquithings.net wrote:
I would like put the title in div=body define in /Element/PageLayout
I don’t know syntax, i read the masonbook but i don’t understand.
ImageShack - todayk.png
2012/7/2 Jonathan Khattir jonathan.khattir@mobiquithings.net
Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me
Best regards, Ruslan.
Ok I tried your js script in the browser console, It’s worked great but
i don’t understand when you say " Use a callback in Header to put it on RT
pages. "
Could you give me a exemple please ?
Ok I tried your js script in the browser console, It’s worked great but i
don’t understand when you say " Use a callback in Header to put it on RT
pages. "
Could you give me a exemple please ?
Have you tried googling or wiki? Try rt callback in google, first three titles:
CustomizingWithCallbacks - Request Tracker Wiki
CleanlyCustomizeRT - Request Tracker Wiki
Using Callbacks in RT | runPCrun - IT Support for London
Best regards, Ruslan.
Yes, i know that is a callbaks, but i don’t know use callbacks with
javascripts. I create a title.js in /NoAuth/title.js and in the
/Elements/Header i add " " but that
don’t work.2012/7/2 Jonathan Khattir jonathan.khattir@mobiquithings.net
Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me
I wrote Title in both file, and when i open
"192.168.2.11/NoAuth/js/Tile.jsin my browser i can see jQuery(‘#header
h1’).prependTo(‘#body’);2012/7/2 Jonathan Khattir jonathan.khattir@mobiquithings.net
Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me
And y clear cache every time that i do a change.2012/7/2 Jonathan Khattir jonathan.khattir@mobiquithings.net
Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me
OK, I created the callbacks Head and I put in jQuery(‘#header
h1’).prependTo(‘#body’);
I clean cache, restart server but i have an error : Error during
compilation of
/opt/rt4/local/html/Callbacks/MobiquiThings/Elements/Header/Head:
Useless use of concatenation (.) or string in void context at
/opt/rt4/local/html/Callbacks/MobiquiThings/Elements/Header/Head line 2.
(/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)
Content of my Head callback :
<%INIT>
jQuery((‘#header h1’).prependTo(‘#body’));
</%INIT>
<%ARGS>
</%ARGS>2012/7/2 Jonathan Khattir jonathan.khattir@mobiquithings.net
Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me
I try tu put your code in script tag like this in Head callbaks
I don’t have error but they don’t works. Have you any solution?2012/7/2 Jonathan Khattir jonathan.khattir@mobiquithings.net
Hi, I would like to known how i can change the place of the title of
current page view.
The variable is $Title, define in /Element/Header so i would like export
this variable or the div
<% $Title %>
to
display the page name in footer (/Element/Footer) for exemple.
Thanks to help me