Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 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
AT 1.7 / How can I edit "commands"?
-
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
pnAdmin -> AutoTheme -> Commands
NOTE: You can't edit pre-configured commands here. You can only add/edit/remove commands that you yourself have created.
If you're looking to edit the pre-configured commands, they are located in the following file, but be aware that you do this at your own risk, and Shawn over at Spidean does not support hacking core files, so make a backup first.
/modules/AutoTheme/commands.php -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 60
Hi alarconcepts, thanks for responding.
I didn't find the file at ../modules/AutoTheme/commands.php,- however, I did find ../modules/AutoTheme/includes/atCommands.php
I was not able to accomplish what I want to do - which is;
In AT 1.7 there is the command called "cat-title" which, of course, displays the category and title of news articles. I just want to display the "title" only.
Can you help me create this command?
I appreciate your help. :)
-The Dugster -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
The file is located there in AutoTheme 1.7. I just checked again, and yes, it's there. As for your request however, there's no sense re-inventing the wheel. Instead of using this:
Code
<!-- [cat-title] -->
...try this...
Code
<!-- [news:html:title] --> -
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 60
Hey, that works like a charm!
I see now that that command was already available in AT 1.7 - I was just looking in the wrong place!
Perhaps you can help me with my next "command/code" problem with date&time at this post;
http://forums.postnuke.com/index.php?name=PNphpBB2&file=viewtopic&t=38480
Thanks for you help,
-The Dugster -
**unknown user**
- Rank: Senior
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 2330
- Moderated by:
- Support
