HomePage Issue
- From: "wwalkerbout" <wayne (at) walkerbout.com>
- Date: Thu, 7 Dec 2006 20:57:50 -0800
Hi Jonathan,
Thanks for the continued and prompt feedback. For clarification, I am on
Xaraya Version 1.1.2.
The "articles_user_get" certainly has me confused. I know there is a "get"
function in the "userapi", but also realize that there isn't one in the
"user" directory for the Articles Module.
You are correct in that the code that pulls in the Article is via the
pageblockgroups_hp.xt template, as listed below:
<xar:comment>get data for the other default blockgroups and set local
variables to hold the data</xar:comment>
<xar:set name="hprightblocksgroup"><xar:blockgroup name="hpright"
id="hpright" /></xar:set>
<xar:set name="hpleftblocksgroup"><xar:blockgroup name="hpleft" id="hpleft"
/></xar:set>
<xar:set name="hpcenterblocksgroup"><xar:blockgroup name="hpcenter"
id="hpcenter" /></xar:set>
<xar:comment>Compose the layout structure based on the available
blockgroups</xar:comment>
<xar:if condition="!empty($hpleftblocksgroup) and
!empty($hprightblocksgroup)">
<xar:template file="content_3col_hp" type="theme" />
<xar:elseif condition="!empty($hpleftblocksgroup) and
empty($hprightblocksgroup)" />
<xar:template file="content_2col_lc_hp" type="theme" />
<xar:elseif condition="empty($hpleftblocksgroup) and
!empty($hprightblocksgroup)" />
<xar:template file="content_2col_cr_hp" type="theme" />
<xar:else />
<xar:template file="content_1col_hp" type="theme" />
</xar:if>
I do have a Block Group called "hpcenter" (modeled on the "center" Block
Group), which is called from whichever "...col..." template file is called.
The hpcenter Block Group is just using the "center" Block template, but I
structured it this way just in case I want more flexibility in the future by
changing that template out. But did notice the structure I am using differs
to the Xaraya_Classic theme, so I guess I must have based my template on
another slightly different version. However, I do like the way the structure
I am using separates out all the page components into different "includes".
The "modulespace" line you mentioned is actually located in those "...col...
template files. But what I did find is that, if I removed that line form the
actual "...col..." that is being called, the error message disappears (along
with any content from that Home Page center content area). So it seems that
the "modulespace" call is needed, but something within that call is breaking
things. While excluding the "modulespace" call removes all Home Page center
area content, the page remains well formed.
So, what I am not sure of is what happens behind that piece of code. Are you
able to clarify that and help me understand how to troubleshoot that?
I really do appreciate your great feedback.
Cheers,
Wayne
"Jonathan Linowes" <jonathan (at) parkerhill.com> wrote in message
news:mailman.163.1165544707.6153.xaraya_devel (at) xaraya.com...
> I've never seen a page template without the module space content
>
> <xar:module class="modulespace" main="true" />
>
> Not sure if that's a problem but try adding that back in.
>
> Anyway, there is no such function articles_user_get (i.e. modules/
> articles/xaruser/get.php is not a file in the articles module). What is
> supposed to be pulling in the article? something in your
> pageblockgroups_hp.xt template?
>
>
_______________________________________________
Xaraya_devel mailing list
Xaraya_devel (at) xaraya.com
http://xaraya.com/mailman/listinfo/xaraya_devel