If you do a basic installation of PN 0.8 modules like downloads,faq,reviews aren't installed. However, there are links to these modules in Seabreaze that don't check if the module is active. Voododolly checks if the module is activated and hides the text in the top navigation bar, but the links to news,downloads and weblinks are still there...
I'm not sure if this is wanted. Of course it keeps the templates simpler. But if a novice user installs a basic PN for the first time and is confronted with links that don't work.....
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pn 0.8 themes and basic installation
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
tycho,
Different approaches really. The reason voodoodolly and andreas08 don't show the modules is not for the reason you mention. The template logic attempts to get the display name of the module but this fails if the module isn't installed so nothing is displayed.
The templates are just samples and i'd expect this to be one of the first things people change - although the new default themes are a lot nicer than the ones in .7x.
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 171
I agree that changing/adapting the theme is one of the first things people change. But if it where my first postnuke installation i wouldn't want to be confronted with "failing" links in a default installation.
Just took a look at the code and voododolly now has:
Code
<ul>
<li class="selected"><a href="<!--[pngetbaseurl]-->">Home</a></li>
<li><a href="<!--[pnmodurl modname=News]-->"><!--[pnmodgetinfo modname=News info=displayname]--></a></li>
<li><a href="<!--[pnmodurl modname=Downloads]-->"><!--[pnmodgetinfo modname=Downloads
info=displayname]--></a></li>
</ul>
Why not change it to something like :
Code
<ul>
<li class="selected"><a href="<!--[pngetbaseurl]-->">Home</a></li>
<!--[pnmodgetinfo modname=Downloads info=displayname assign=downloadsname]-->
<!--[if $downloadsname != ""]-->
<li><a href="<!--[pnmodurl modname=Downloads]-->"><!--[$downloadsname]--></a></li>
<!--[/if]-->
</ul>
Untested but this way people won't be confronted with links leading to a "Module not available" page in a default installation.
ps. the new themes are a lot nicer :) Great work!
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
