Hi Luc,
Just check out the package and involved to my project as App.
Set it to installed_app and in one of my template, I use {% flatblock "My
Awesome Block" %}.
But no context displayed neither in site page nor in admin...
Here is src generated by {% flatblock "My Awesome Block" %}
<div class="flatblock block-my-awesome-block">
<form style="display:none;" class="editable-form" method="post"
action="/edit/" id="1b97c8ef-57b6-4c08-864a-44fe01a42b2f">
<input type="hidden" name="csrfmiddlewaretoken"
value="wvCUOpF4swQFlakrtOOJlAQjyOlZ1DdH">
<p>
<label
for="content-1b97c8ef-57b6-4c08-864a-44fe01a42b2f">Content</label><br><textarea
class=" charfield" cols="40"
id="content-1b97c8ef-57b6-4c08-864a-44fe01a42b2f" name="content"
rows="10"></textarea>
</p>
<p style="display:none;">
<label
for="app-1b97c8ef-57b6-4c08-864a-44fe01a42b2f">App</label><br><input
class=" charfield" id="app-1b97c8ef-57b6-4c08-864a-44fe01a42b2f" name="app"
type="hidden" value="mezzanine_blocks">
</p>
<p style="display:none;">
<label
for="model-1b97c8ef-57b6-4c08-864a-44fe01a42b2f">Model</label><br><input
class=" charfield" id="model-1b97c8ef-57b6-4c08-864a-44fe01a42b2f"
name="model" type="hidden" value="block">
</p>
<p style="display:none;">
<label
for="id-1b97c8ef-57b6-4c08-864a-44fe01a42b2f">Id</label><br><input class="
charfield" id="id-1b97c8ef-57b6-4c08-864a-44fe01a42b2f" name="id"
type="hidden" value="1">
</p>
<p style="display:none;">
<label
for="fields-1b97c8ef-57b6-4c08-864a-44fe01a42b2f">Fields</label><br><input
class=" charfield" id="fields-1b97c8ef-57b6-4c08-864a-44fe01a42b2f"
name="fields" type="hidden" value="content">
</p>
<input type="submit" value="Save" class="btn btn-primary btn-lg">
<input type="button" value="Cancel" class="btn btn-default btn-lg">
</form>
<div class="editable-original">
<div class="content"></div>
</div>
<a style="visibility: hidden; top: 545px; left: -32px;"
class="editable-link" href="#"
rel="#1b97c8ef-57b6-4c08-864a-44fe01a42b2f">Edit</a>
<div style="visibility: hidden; width: 1140px; height: 0px; top: 545px;
left: 15px;" class="editable-highlight"></div>
</div>
在 2014年5月14日星期三UTC+8下午3时12分45秒,Luc Milland写道:
>
> Hi Wesley,
> you could use something like https://github.com/renyi/mezzanine-blocks
> for that use.
>
> Luc
>
> Le mardi 13 mai 2014 à 23:58 -0700, Wesley a écrit :
> > Guys,
> > I am trying to customize homepage these days.
> >
> > I have succeeded to make homepage editable in admin.
> > Here just wanna consult one design case.
> > Firstly, show u guys the homepage structure:
> >
> > <
> https://lh4.googleusercontent.com/-vKo_-blDkS0/U3MTNbsv12I/AAAAAAAAAFk/QDQfNtzT05U/s1600/QQ%E5%9B%BE%E7%89%8720140514145244.jpg>
>
>
> >
> > So, just see the ColumnX part, now , I wanna these columns editable
> during
> > the admin homepage editing, that is, columns number and each column
> > content, so, I think the ColumnX part should be a page, eh?
> >
> > How to desigh this?
> >
> > Thanks.
> >
> > Wesley
> >
>
>
>
--
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.