Or perhaps "greyed out" so you can't edit it but at least you know where
the link points to. That was the main problem for me; the end user wanted
to know what the link was pointing to but it wouldn't even show in the
admin.

Christopher Vo
On Oct 15, 2014 2:15 PM, "Josh Cartmell" <[email protected]> wrote:

> No problem, I think someday it would be nice to update it so there was a
> setting somewhere that would toggle this behavior, that way if you really
> did know what you were doing and had accidentally set a slug that
> overlapped a URL you could fix it without having to mess with the database
> directly.
>
> Good luck!
>
> On Wed, Oct 15, 2014 at 11:19 AM, Christopher Vo <[email protected]> wrote:
>
>> Yes, this seems to be what is happening. It's linked to an existing url
>> and so it's preventing its modification.
>> Now that I think of it, this is a desirable behavior on a production site.
>> Thanks for your help Josh.
>>
>> Christopher Vo
>>
>> On Wed, Oct 15, 2014 at 11:14 AM, Josh Cartmell <[email protected]>
>> wrote:
>>
>>> I'm not sure why I didn't think of this before, but I think I understand
>>> what is happening now.  If the slug field matches a url somewhere in a
>>> urls.py Mezzanine hides it.  This is to prevent an admin user modifying it,
>>> not realizing the slug needs to match the url.
>>>
>>> Does the url you set match an existing url?
>>>
>>> On Wed, Oct 15, 2014 at 10:35 AM, Christopher Vo <[email protected]>
>>> wrote:
>>>
>>>> And here is where it's happening in the PageAdmin's view methods.
>>>> Apparently it hides the slug field if you have overridden it.
>>>> I'm not sure why that would make sense.
>>>>
>>>> kwargs["extra_context"].update({
>>>>     "hide_delete_link": not content_model.can_delete(request),
>>>>     "hide_slug_field": content_model.overridden(),
>>>> })
>>>>
>>>> Christopher Vo
>>>>
>>>> On Wed, Oct 15, 2014 at 10:27 AM, Christopher Vo <[email protected]>
>>>> wrote:
>>>>
>>>>> I found where it's happening in the source output:
>>>>>
>>>>> <link rel="stylesheet" href="/static/mezzanine/css/admin/global.css">
>>>>> <style>
>>>>>     /* These are set in PageAdmin's view methods, and
>>>>> mezzanine.core.admin.SingletonAdmin */
>>>>>     .slug {display:none !important;}
>>>>> </style>
>>>>> <script>
>>>>>
>>>>> Christopher Vo
>>>>>
>>>>> On Wed, Oct 15, 2014 at 10:19 AM, Christopher Vo <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Yes, in fact, you can see it in the page source.
>>>>>>
>>>>>> Christopher Vo
>>>>>>
>>>>>> On Wed, Oct 15, 2014 at 9:47 AM, Josh Cartmell <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> That's strange, it always shows for me.  Could there be some stray
>>>>>>> javascript that is hiding it?
>>>>>>>
>>>>>>> Is it present in the page source?
>>>>>>>
>>>>>>> On Sun, Oct 12, 2014 at 12:23 AM, Christopher Vo <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I even went into the Mezzanine source code:
>>>>>>>>
>>>>>>>> At mezzanine/pages/admin.py:224
>>>>>>>> Added the line "print fieldsets"
>>>>>>>>
>>>>>>>> And verified that 'slug' appears among the fieldsets! But it still
>>>>>>>> doesn't display on the admin....
>>>>>>>>
>>>>>>>>
>>>>>>>> On Saturday, October 11, 2014 11:37:41 PM UTC-4, Christopher Vo
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> I am using Mezzanine 3.1.10
>>>>>>>>>
>>>>>>>>> The attached screen shot shows the problem. Notice how there is no
>>>>>>>>> "URL" field when I try to edit a link.
>>>>>>>>> Is there any reason why this would happen?
>>>>>>>>>
>>>>>>>>  --
>>>>>>>> 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 [email protected].
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>  --
>>>>>>> You received this message because you are subscribed to a topic in
>>>>>>> the Google Groups "Mezzanine Users" group.
>>>>>>> To unsubscribe from this topic, visit
>>>>>>> https://groups.google.com/d/topic/mezzanine-users/qKrpWVmrcgw/unsubscribe
>>>>>>> .
>>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>>> [email protected].
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>  --
>>>> 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 [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Mezzanine Users" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/mezzanine-users/qKrpWVmrcgw/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> 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 [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mezzanine-users/qKrpWVmrcgw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to