Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-09 Thread Iain Mac Donald
On Sun, 8 Apr 2018 19:21:20 -0700 (PDT)
Kusanagi Yu  wrote:

> Hello Iain, if you're still clickable on placeholder menu

Thanks. Latest version of menuplaceholder is working just fine.

-- 
Regards,
Iain.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-08 Thread Kusanagi Yu
Hello Iain, if you're still clickable on placeholder menu. Please sure you 
don't override template by any theme. Cause menuplaceholder has conditions 
by itself

{% if page.in_menu %}

{% if page.menuplaceholder %}{{ page.title 
}}{% else %}
{{ page.title }}
{% endif %}

{% endif %}

If you do, just modify primary.html, mobile.html, breadcrumb.html, 
dropdown.html, footer.html, footer_tree.html, tree.html in 
theme_module/templates/pages/menus


Vào 19:45:29 UTC+7 Thứ Sáu, ngày 06 tháng 4 năm 2018, iain ross đã viết:
>
>
> Hello Peter, 
>
> I had tried "menuplaceholder" both at the top and bottom of installed 
> apps, clickable in either place. 
>
> Any other ideas? 
>
> Using Mezz 4.2.3, Django 1.10 and Python 2.7.13 
>
> -- 
> Regards, 
> Iain. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-07 Thread Peter Murphy
All,

I feel I should announce that I resolved the issue (with Iain's kind 
assistance). Dummy menu items should now be dummy menu items, and thus not 
clickable.

Now only that, you can now install via pip:

pip install menuplaceholder

Or if you wish, you can download from 
https://github.com/peterkmurphy/menuplaceholder

This should work with versions 2 and 3 of Python.

As always, any feedback would be appreciated.

Best regards,
Peter
 

On Saturday, April 7, 2018 at 6:45:26 PM UTC+10, iain ross wrote:
>
> On Fri, 6 Apr 2018 20:09:57 -0700 (PDT) 
> Peter Murphy  wrote: 
>
> > One more question: when you said you are creating a 'top-level' menu 
> > item - did you mean at the same level as About and Contact? 
>
> Yes. Although, when I created the Mezz site I did it without creating 
> the example pages. 
>
> > 
> > If you would be so kind, would you be able to submit a bug report 
>
> https://github.com/peterkmurphy/menuplaceholder/issues/1 
>
> -- 
> Regards, 
> Iain. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-07 Thread Iain Mac Donald
On Fri, 6 Apr 2018 20:09:57 -0700 (PDT)
Peter Murphy  wrote:

> One more question: when you said you are creating a 'top-level' menu
> item - did you mean at the same level as About and Contact? 

Yes. Although, when I created the Mezz site I did it without creating
the example pages.

> 
> If you would be so kind, would you be able to submit a bug report 

https://github.com/peterkmurphy/menuplaceholder/issues/1

-- 
Regards,
Iain.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-06 Thread Peter Murphy
Iain,

I'm using almost exactly the same stack as you (Python 2.7.12/Mezz 
4.2.3/Django 1.10.8). I'm running it on Ubuntu, but it shouldn't make any 
difference with Windows or Mac. 

One more question: when you said you are creating a 'top-level' menu item - 
did you mean at the same level as About and Contact? 

If you would be so kind, would you be able to submit a bug report at 
https://github.com/peterkmurphy/menuplaceholder/issues, with a description 
of what menus items you added and remove, what OS, and so on. I admit I am 
completely flummoxed at this point, but I want to sort out this bug in my 
code.

Best regards,
Peter
 

On Friday, April 6, 2018 at 10:45:29 PM UTC+10, iain ross wrote:
>
>
> Hello Peter, 
>
> I had tried "menuplaceholder" both at the top and bottom of installed 
> apps, clickable in either place. 
>
> Any other ideas? 
>
> Using Mezz 4.2.3, Django 1.10 and Python 2.7.13 
>
> -- 
> Regards, 
> Iain. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-06 Thread Iain Mac Donald

Hello Peter,

I had tried "menuplaceholder" both at the top and bottom of installed
apps, clickable in either place.

Any other ideas?

Using Mezz 4.2.3, Django 1.10 and Python 2.7.13

-- 
Regards,
Iain.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-06 Thread Peter Murphy
Iain,

When I tested "menuplaceholder", I had it at the beginning in 
INSTALLED_APPS. But if you put it at the end (or _after_ 
"mezzanine.pages"), then you will find the dummy menu items clickable. 
That's because menuplaceholder is basically a rewrite of the default 
Mezzanine menu templates, and if you put "mezzanine.pages" first, it 
"wins". However, if you put "menuplaceholder" first, it should take 
priority.

I'm guessing this is what happened. Was I right? (I may need to document it 
better, or think of a better way to achieve this.)

I hope this helps. Best regards,
Peter


On Thursday, April 5, 2018 at 11:04:47 PM UTC+10, iain ross wrote:
>
>
> Hello Peter, 
>
> Great idea. I have used Eduardo's technique a few of times, but a 
> dedicated solution is welcome. 
>
> I have tried Menuplaceholder in a test copy of Mezzanine, but I am 
> finding that the top-level "dummy" menu item is clickable. Address bar 
> changes to dummy location and shows an empty page. 
>
> Am I misunderstanding something? 
>
> -- 
> Regards, 
> Iain. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-05 Thread Iain Mac Donald

Hello Peter,

Great idea. I have used Eduardo's technique a few of times, but a
dedicated solution is welcome.

I have tried Menuplaceholder in a test copy of Mezzanine, but I am
finding that the top-level "dummy" menu item is clickable. Address bar
changes to dummy location and shows an empty page.

Am I misunderstanding something?

-- 
Regards,
Iain.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2018-04-05 Thread Peter Murphy
Dear Eduardo (and all),

I was working on another project, and I found the Menu Placeholder idea was 
going to be useful. So this is a version 0.1 I cracked out. I hope it is of 
use to everybody. Any feedback would be appreciated.

https://github.com/peterkmurphy/menuplaceholder

Best regards,
Peter

On Monday, April 4, 2016 at 10:49:53 AM UTC+10, Peter Murphy wrote:
>
> Eduardo,
>
> Thank you very much for your answer. It tells me what I want is possible, 
> and gives me ideas of how to pursue it. In my case, I might need to 
> subclass the Page class to create a Placeholder class (which generates 
> menus but not clickable menus). It possibly would be code that I'd be able 
> to contribute to Mezzanine.
>
> Thanks again and best regards,
> Peter
>
> On Sunday, April 3, 2016 at 3:51:01 AM UTC+10, Eduardo Rivas wrote:
>>
>> Hi Peter. 
>>
>> I've done this before like so:
>>
>> - Create a top level Link page (this would be Galleries) . Set the slug 
>> to one of the child pages (for example, Gallery 1).
>>
>> - Add as many child pages as you like. 
>>
>> You can stop there, and users will always be redirected to a child page, 
>> the top level page is inaccesible. However, something I like to do is 
>> modify the drop-down menu template to remove the  tag from all top level 
>> pages that have children. This makes them completely inaccessible and they 
>> work as pure containers. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2016-04-03 Thread Peter Murphy
Eduardo,

Thank you very much for your answer. It tells me what I want is possible, 
and gives me ideas of how to pursue it. In my case, I might need to 
subclass the Page class to create a Placeholder class (which generates 
menus but not clickable menus). It possibly would be code that I'd be able 
to contribute to Mezzanine.

Thanks again and best regards,
Peter

On Sunday, April 3, 2016 at 3:51:01 AM UTC+10, Eduardo Rivas wrote:
>
> Hi Peter. 
>
> I've done this before like so:
>
> - Create a top level Link page (this would be Galleries) . Set the slug to 
> one of the child pages (for example, Gallery 1).
>
> - Add as many child pages as you like. 
>
> You can stop there, and users will always be redirected to a child page, 
> the top level page is inaccesible. However, something I like to do is 
> modify the drop-down menu template to remove the  tag from all top level 
> pages that have children. This makes them completely inaccessible and they 
> work as pure containers. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Placeholders as Menu Items.

2016-04-02 Thread Eduardo Rivas
Hi Peter.

I've done this before like so:

- Create a top level Link page (this would be Galleries) . Set the slug to
one of the child pages (for example, Gallery 1).

- Add as many child pages as you like.

You can stop there, and users will always be redirected to a child page,
the top level page is inaccesible. However, something I like to do is
modify the drop-down menu template to remove the  tag from all top level
pages that have children. This makes them completely inaccessible and they
work as pure containers.

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.