Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

How to register a custom page template to Atahualpa sidebar manager


  #1  
Old Aug 10, 2011, 03:58 PM
Michael T.
 
12 posts · Mar 2011
I use Atahualpa in my webpage. Atahualpa is a great tool to customize the layout easily.

To show a kind of index for glossary items row by row, I use a custom page template (archiv_a-z.php):

PHP Code:
<?php
$posts 
query_posts('tag=glossary''&orderby=title&order=asc&posts_per_page=-1');
foreach(
$posts as $post) : ?>
<li class="<?=($i%2)?"color1":"color2";$i++;?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul></div>
<div id="menue">
<br><br><br><br>
<?php do_action('wp_menubar','AZ_Menue'); ?>
<br><br>
</div>
 <?php get_footer(); ?>
By this definition the template is "unknown" to Atahualpa, i.e., no sidebars are shown, neither left nor right - outer nor inner.

Can I register the custom template archiv_a-z.php to Atahualpa, so that I could specify which sidebar should be displayed?

Thanx & cheers
  #2  
Old Aug 10, 2011, 04:09 PM
juggledad's Avatar
juggledad
 
23,672 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You need to take a look at index.php for the header and footer info.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Aug 10, 2011, 04:13 PM
Michael T.
 
12 posts · Mar 2011
Hi Ho,

I found a solution at Wordpress.org:

http://wordpress.org/support/topic/a...-page-template

Michael
  #4  
Old Aug 10, 2011, 04:16 PM
juggledad's Avatar
juggledad
 
23,672 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
things have changes from 2 years ago.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Aug 10, 2011, 04:45 PM
Michael T.
 
12 posts · Mar 2011
Hi Juggledad,

your are right... times are changing...

Thus I tried the short snippet from index.php only:

PHP Code:
<?php 
list($bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
?>

...here comes my code ...
WoW that's pretty clean and short code!

Thanx juggledad

Michael

Last edited by Michael T.; Aug 10, 2011 at 04:58 PM.
  #6  
Old Aug 10, 2011, 05:18 PM
juggledad's Avatar
juggledad
 
23,672 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You need to add the footer code from Index.php to get the right sidebars and the footer
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Aug 11, 2011, 01:44 AM
Michael T.
 
12 posts · Mar 2011
juggledad, thanx for the advice. But index.php shows only one call: <?php get_footer(); ?> - and this is the last line of my code (see my first posting).
Is there anything else to consider for the footer?

Cheers Michael
  #8  
Old Aug 11, 2011, 07:24 AM
juggledad's Avatar
juggledad
 
23,672 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That's it that will handle the right sidebars and footer
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: a 'Custom Query' PAGE template juggledad Atahualpa 3 Wordpress theme 1 Jul 15, 2010 06:07 PM
[SOLVED] How can I insert a picture in a custom page template? reradu Atahualpa 3 Wordpress theme 10 Oct 15, 2009 02:00 AM


All times are GMT -6. The time now is 08:11 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.