Hopefully this'll be the last time I talk about sorting out my tag
functionality :).
So the first problem of having tags being acknowledged in any way has
been sorted out (thanks Colin), now I just need the tags and templates
to work properly.
Problem 1: The function described above, ie
Instead of using:
<?php if( in_array('Asides', $post->tags ) ): ?>
... you need to use the more intuitive ...
<?php if ( $post->tags->has('Asides') ): ?>
Is still giving me the same error. The difference now however is that
using the original code, it is working, rather than reverting to the
default like it was before, so clearly something is working correctly.
Problem 2:
The individual tag themed pages are not being used. So for example I
style all posts under TAG1 in a specific way by putting a tag.TAG1.php
file in my theme and that should do it. Unfortunately it's just
ignoring that particular file and just reverting to the tag.php file.
Any ideas how I can test this out?
-----------------------------------------
Khaled Abou Alfa
www.brokenkode.com
On Mon, Nov 29, 2010 at 10:01 PM, Khaled Abou Alfa
<[email protected]> wrote:
> Okay, clearly I've got some serious issues with tags in general :).
>
> I put that bit of code in there and I get this error:
>
> Fatal error: Call to a member function has() on a non-object in
> /brokenkode.com/user/themes/No9.6/home.php on line 30
>
> Which is where that function is called. In addition to my other issue
> with tag related pages and the fact that when I put a tag in the tag
> tray it doesn't stay there, I'm guessing all of my tags are somehow
> seriously borked.
>
> Running the first DP release, and thoughts on what I should check to
> make sure my tag information is running correctly? Is there a list I
> could check?
>
> -----------------------------------------
> Khaled Abou Alfa
> www.brokenkode.com
>
>
>
> On Mon, Nov 29, 2010 at 3:13 PM, Khaled Abou Alfa
> <[email protected]> wrote:
>> Sweet thanks Collin, will try and sort that out and report back.
>> -----------------------------------------
>> Khaled Abou Alfa
>>
>> (leb) +961 70 429 469
>> P.O Box 863, Saida, Lebanon
>> [email protected]
>> www.brokenkode.com
>>
>>
>>
>> On Mon, Nov 29, 2010 at 12:06 PM, Colin <[email protected]> wrote:
>>> Hi Khaled
>>>
>>> As you rightly pointed out, this is indeed due to the taxonomy changes.
>>>
>>> Instead of using:
>>>
>>> <?php if( in_array('Asides', $post->tags ) ): ?>
>>>
>>> ... you need to use the more intuitive ...
>>>
>>> <?php if ( $post->tags->has('Asides') ): ?>
>>>
>>> I'm in the process of walking through these changes and plan to
>>> document the changes once I fully understand them, assuming someone
>>> else doesn't beat me to it :-)
>>>
>>> Cheers,
>>> Colin
>>>
>>>
>>> On Sun, Nov 28, 2010 at 7:32 PM, Khaled Abou Alfa
>>> <[email protected]> wrote:
>>>> Another tag related question I have is on my index page, I try and filter
>>>> out posts with a specific tag, to style them differently. The way I do that
>>>> is using something like:
>>>> <?php if( in_array('Asides', $post->tags ) ): ?>
>>>> If it's tagged as an aside then it'll show up here and I style it in a way.
>>>> Alternatively I could have:
>>>> <?php elseif( in_array('Featured', $post->tags ) ): ?>
>>>> And style it in another way.
>>>> This appears to have stopped working as well (which I'm guessing is down to
>>>> the new changes in the taxonomy). Soooo any ideas how I can get this
>>>> functionality back?
>>>> Thanks again,
>>>> -----------------------------------------
>>>> Khaled Abou Alfa
>>>> www.brokenkode.com
>>>>
>>>> --
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/habari-users
>>>
>>>
>>>
>>> --
>>> Colin Seymour
>>> Blog: http://colinseymour.co.uk
>>> Tech Stuff: http://lildude.co.uk
>>> Barefoot Running: http://barefootrunner.co.uk
>>> IRC: lildude #habari
>>>
>>> --
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/habari-users
>>
>
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users