Author |
Message |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Tue Apr 03, 2012 11:44 am |
|
I have been playing with a new type of module - it has an MVC architecture and uses HTML 5 but have come across a small problem
I'm using jQuery to manipulate some data via AJAX but the information that is displayed in the modules administration area has to be nested to reflect the way the data is organised (i'm also using tabs).
With a fixed width theme like RickTido, (around 960px) I have run out of width on the page, even with right blocks turned off and need to find a mechanism to turn off the left blocks as well.
We do have an array within our themes ($hide_blocks_left) for turning of left blocks but this only seems to be working on the module index page NOT within the modules administration area.
Has anyone come across this and found a solution? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
Former Moderator in Good Standing
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Tue Apr 03, 2012 12:17 pm |
|
I use Ravenice mostly. The code in the theme file can be changed to do something like this:
[code] global $hide_blocks_left;
if (in_array($name, $hide_blocks_left) || defined('ADMIN_FILE')) {
down around line 71. Probably there is something similar in the other themes. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
wHiTeHaT
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Jul 18, 2004
Posts: 579
|
Posted:
Tue Apr 03, 2012 3:45 pm |
|
you can also define per $file |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Apr 03, 2012 3:57 pm |
|
Thanks, I'll try that when the old brain cells have had a nap ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Apr 06, 2012 9:01 am |
|
Pretty long nap there G-man... ![ROTFL](modules/Forums/images/smiles/rotfl.gif) |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 06, 2012 11:15 am |
|
Thanks for reminding me. I never actually got to try the two idea's that were proposed.
After my nap, I decided that since the module uses it's own mini-template system and MVC architecture I decided to just put in my own header code in the 'template' files. Access is restricted via admin.php as usual but apart from that, the module itself runs completely stand alone and has no dependency on RN at at all. You can literally cut the module folder and paste it into the webroot and it will work identically, the only difference being that you need to add the DB connection details and 'path' settings in the modules config file for stand alone operation.
It has been an informative POC project. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2012 10:08 am |
|
Guardian2003 wrote: | It has been an informative POC project. |
Sometimes, that is just what one needs. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Fri Apr 13, 2012 10:29 am |
|
I assume POC does not mean "Piece of Cake"
I don't think those projects exist, lol ![Rolling Eyes](modules/Forums/images/smiles/icon_rolleyes.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Apr 13, 2012 10:57 am |
|
so true.... POC = "Proof of Concept"... for those who are not familiar with the term (not saying you weren't spastic as I know you were just kidding) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/5ed231554a8492e2e09da.gif)
Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Sun Apr 15, 2012 3:42 am |
|
Oh my God, I was trying to get what POC was but now I know it is a not a piece of cake. hmmm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|