Posted: May 29, 2013 at 9:46 am
|
I am using the regular event list/shortcode by category a la here. But I would like to create a second format a la something like here. Simply title, location and date as a text link, without themeroller box, etc. The main reason for the simplicity is space. Right now these are all entered manually, and of course have to be updated as such. I have already worked some customizations for the regular event list display, and the first example, on the event_list_display.php But can I create a whole second format for the other purpose? Perhaps with a whole separate list_display file, shortcode, shortcode variables, or in some other way? Any help or insight appreciated
Tim
|
Hi Tim, It can be done with some custom development. Basically you could copy the event_list.php and event_list_display.php templates, rename them to something like custom_event_list.php and custom_event_list_display.php, and strip out everything you don’t need. You’ll also need to change the function names so you don’t conflict with the original templates. Then you can copy the function that creates the [EVENT_LIST] shortcode (you’ll find it ~ line 398 of /includes/shortcodes.php) into the custom_functions.php file that’s included with the custom files add-on. Once you copy the function over, you can rename it and the function that it calls to load up the event list and change it to call the renamed function in your custom templates. Alternatively you could work off one of the example templates included in the Custom Files add-on. There are a few example templates that you could adapt there as well. |
|
|
Thanks Josh! Ok, to review the steps . . 1. copy the event_list.php and event_list_display.php templates and rename. 2. strip out everything you don’t need. 3. change the function names to avoid conflict with the original templates. 4. copy the function that creates the [EVENT_LIST] shortcode into the custom_functions.php file. (line 398 of /includes/shortcodes.php) 5. Once you copy the function over, you can rename it and the function that it calls to load up the event list and change it to call the renamed function in your custom templates.
So far I amhaving one problem. I did not have the custom files addon installed but when I go to install it I keep getting this message: “The package could not be installed. No valid plugins were found. Any idea why that might be? I have the license to use it, right? |
Hi Tim, The custom files add-on is not a plugin. It’s a set of files you can upload to your server with FTP. There is more information on how to install it in the documentation: |
|
|
Oh. Well, um . . . that explains the message! In the sentiments of Homer Simpson – D’oh! |
We’re eventually going to make the custom files add-on into a plugin which will be handy in cases where you want to activate/deactivate it. |
|
The support post ‘Can I create two different event list displays?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.