You know how you can choose to have the Admin template show when you are editing a Node? Well a module I am using (Node Images) creates a tab beside the edit button, and when you click that tab, the administration theme doesn't appear.
So what I attempted to do was modify the module's tab path to node/node%/edit/images. This way, Drupal thinks its under the "Edit" portion and displays the Admin theme.
Here is the original code in the module displayed under the node_images_menu() function which is for hook_menu().
$items['node/%node/images'] = array( 'title' => 'Images', 'page callback' => 'drupal_get_form', 'page arguments' => array('_node_images_edit_page', 1), 'access callback' => '_node_images_access', 'access arguments' => array('create', 1), 'weight' => 2, 'file' => 'node_images.pages.inc', 'type' => MENU_LOCAL_TASK, );
Drupal Themes
Admin Theme for All Node Tabs
Drupal ThemesComplex relationship with views
Drupal ThemesHello all,
so, I have the following three nodetypes:
User (this is the default user)
Node_Type_1
Node_Type_2
There is a field in Node_Type_1 that references the User ID, and a field in Node_Type_2 that references the User ID. Now, I've created a page view of Node_Type_2 that uses the Node:Title as the argument. I'd like an attachment view of Node_Type_2 that uses the same Node:Title argument. However, Node_Type_2 does not have a direct reference to Node_Type_1, only indirectly by way of the User node.
That is, I want Node_Type_1 to take the Node:Title as an argument, handle that argument to look up the User ID of Node_Type_2 based on Node_Type_2's Title, and then use that User ID as the argument filter.
problem with a new custom region
Drupal ThemesHi,
i tried to start theming with drupal. I have a question.
I have added in my mytheme.info file the initialisation of the new region as shown in the following code:
regions[sepp] = Testregion
now i what to use the regions Variable in my page.tpl.php as shown in the following code:
<div id="test"> <?php if ($sepp): ?> Hello World <?php endif; ?> </div>
Internet Explorer not loading css styles
Drupal ThemesHi guys,
I'm putting together a custom theme for a portfolio site and IE7 is not playin' ball. This theme renders fine in every other browser, but IE (currently testing IE7) is not loading the styles from the style sheet. I have tried taking the "?2" out of the tag in the header. I have also cleared the cache in both the browser and under admin/settings/performance but no dice. I really don't know what the deal is here. In source view, the css links are showing up and there are only 17 so the >31 bug does not apply here. Below is a link to my site. If anybody can offer some guidance I would really appreciate it.
HELP! Workaround for developing theme and content -- CSS is sometimes stale?
Drupal ThemesQuestion: Workaround for developing theme and content -- CSS is sometimes stale?
read more
drupal_get_path_alias in template.php?
Drupal ThemesHi folks,
just wondering if anyone had any experience of creating rss feeds from drupal so they link to the aliased URL?
I've created a preprocessor for this and it's working, but when I do;
$path = 'node/32';$item->link = drupal_lookup_path('alias', $path);
I get the system path returned still. Anyone know why?
TIA
Mark
Lost the admin menu module
Drupal ThemesI have created my own theme that was based off the garland theme.
On applying the theme to the whole site i lost all my admin menus etc.
so i resorted to having a separate theme for the admin side.
The only thing is that when you preview something / view the block list it loads the front end theme. Again my menus are gone.
If all i have done is edit the page.tpl.php file how is it that the admin menu module doesn't load properly?
Second question,
if i haven't turned on clean urls yet how can i show the user login to only if the the url =
?q=user
lost the "forgotten your password" from login block
Drupal ThemesI've been working on a site for quite a while and have somehow lost the "forgotten your password" link in the login box. I have no idea where to fix this and could use some help.
The reason I noticed this is because I can't forgot my login for my admin account and wanted to email it to myself.
Thanks,
Sidebars and content on top of one another in IE 7
Drupal ThemesI'm a complete newbie to CSS, and I'm trying my hand at theming for the first time.
I took on a fairly simple project and, using Zen, created a new sub-theme. Everything seems to be working fine, except with IE 7. There, the three columns of my layout appear stacked on top of one another, all flush left.
Zen has specific coding work-arounds for IE and IE6, so I'm thinking the problem is mine.
Also, I know that IE puts a limit of 31 on CSS stylesheets. However, when I try to enable "CSS optimization," I lose all CSS styles throughout the website. This is odd because I did some research and found that a patch (for include/common.inc) for this was already part if my Drupal 6.19 install.
put contact informations inside header
Drupal ThemesHi all!
I'm new to the forum, and to Drupal as well ;-)
I'm creating a site using a theme, Sky.
What I'd like to do is to add some information on the header.
The logo is on the leftmost part of the header, and that's ok.
What i want is to put four lines on the righmost part.
Do you think that's possible?
Thanks you for any tip!
liuks