Re: [rt-users] Change the place of title page name
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.khat...@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 div id=headerh1% $Title %/h1/div to display the page name in footer (/Element/Footer) for exemple. Thanks to help me :)
Re: [rt-users] Change the place of title page name
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 ?
Re: [rt-users] Change the place of title page name
On Fri, Jul 6, 2012 at 5:59 PM, Jonathan Khattir jonathan.khat...@mobiquithings.net wrote: 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.
Re: [rt-users] Change the place of title page name
On Fri, Jul 6, 2012 at 6:28 PM, Jonathan Khattir jonathan.khat...@mobiquithings.net wrote: /NoAuth/js/Title.js in one place you say Title in other title. Case matters. Have you tried to open the URL of java script file in the browser? Have you cleared mason cache? -- Best regards, Ruslan.
Re: [rt-users] Change the place of title page name
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.khat...@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 div id=headerh1% $Title %/h1/div to display the page name in footer (/Element/Footer) for exemple. Thanks to help me :)
Re: [rt-users] Change the place of title page name
And y clear cache every time that i do a change. 2012/7/2 Jonathan Khattir jonathan.khat...@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 div id=headerh1% $Title %/h1/div to display the page name in footer (/Element/Footer) for exemple. Thanks to help me :)
Re: [rt-users] Change the place of title page name
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.khat...@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. http://imageshack.us/photo/my-images/21/todayk.png/ 2012/7/2 Jonathan Khattir jonathan.khat...@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 div id=headerh1% $Title %/h1/div to display the page name in footer (/Element/Footer) for exemple. Thanks to help me :) -- Best regards, Ruslan.
Re: [rt-users] Change the place of title page name
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. http://imageshack.us/photo/my-images/21/todayk.png/ 2012/7/2 Jonathan Khattir jonathan.khat...@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 div id=headerh1% $Title %/h1/div to display the page name in footer (/Element/Footer) for exemple. Thanks to help me :)
[rt-users] Change the place of title page name
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 div id=headerh1% $Title %/h1/div to display the page name in footer (/Element/Footer) for exemple. Thanks to help me :)
Re: [rt-users] Change the place of title page name
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 div id=headerh1% $Title %/h1/div 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, - KevinR
Re: [rt-users] Change the place of title page name
On Mon, Jul 2, 2012 at 5:03 PM, Jonathan Khattir jonathan.khat...@mobiquithings.net wrote: 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 div id=headerh1% $Title %/h1/div 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.