Hi all,
We have recently implemented the sections module with the hope of theming a certain section of the site. The problem comes in where we need to be able to define the paths of that section for the theme to take effect. I suppose what I am asking is how does one define a section and all it's children with a path alias so that all the pages carry the same theme?

Cheers,

Julie

Comments

dpizzle’s picture

have you tried using pathauto?

Julieslv’s picture

Hi that has been installed and I still cannot get the "primary tabs' " pages to have the alias "groups".

Anonymous’s picture

Hi Julie,

You just need to edit your page specific visibility settings.
This has the following 3 settings;

* Show on every page except the listed pages.
* Show on only the listed pages.
* Show if the following PHP code returns TRUE (PHP-mode, experts only).

So if you wish to apply a theme to the news folder of your site (for example), you would select
"Show on only the listed pages"
and enter your folder name followed with a wild card like this;
news/*

Use Taxonomy and Automatic Alias to automatically put your content into the correct folder.

Hope this helps.

Regards,

John

Julieslv’s picture

This is an email from my colleague. Short of creating a seperate site, I don't know where else to look for a solution.

I have looked at this and from what I can see there is no way to style the group pages when they are in edit, outline, revision, track or email mode. (when you click the tabs).

The technical reason is that the pathauto module (the module that gives pages aliases) only applies the alias to the view page. E.g. if you look at this page: http://www.vuma.ac.za/drupal/?q=groups/23-24-fotim-staff-visit-univen-te... it is easy to apply a theme to it because it has the alias ‘group’ in the URL.
Now if you click ‘edit’ for this page you get the following URL: http://www.vuma.ac.za/drupal/?q=node/5432/edit This URL is not unique (it does not have the alias ‘group’) in anyway so we can not apply a specific theme to it to my knowledge.

So I have thought about what we can do, either we style the groups as we are doing and just not have a theme when in any other mode besides ‘view’. We can still style certain things such as the side navigation block (on the right) that will appear in all modes. That’s one option and the second another option is to run the groups as a separate site (that means setting up a news site specifically for the groups). Besides this im not sure we can style the groups separately at this stage. 

If anyone has any other ideas let me know and we can try them.

Please use my test login
mbali88
mbali101

The dilemma is that pathauto does not apply the aliases to the etdit, track and email pages? It sounds like a retarded request, but surely those pages are children of the view page.

Any ideas in any other direction???

Anonymous’s picture

In Administration Theme, you can choose an administration theme. There is a check box labeled
"Use administration theme for content editing" which is probably what you want?

John