Fork me on GitHub

AT 1.7 / How can I edit "commands"?  Bottom

  • Where can I find the "commands" within AT 1.7 in order to edit the definitions?
  • 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
  • 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
  • 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] -->
  • 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
  • AT User Guide

    The bottom of the document has a list of all available commands.

This list is based on users active over the last 60 minutes.