Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Hisham Bin Ateya
    @hishamco
    Exactly
    Omid Nasri
    @omidnasri
    Thx, I watch the educational video
    Sébastien Ros
    @sebastienros
    @deanmarcussen @Flarescape I pushed the updated yessql yesterday, it should work now
    I mean in dev
    Matthijs Krempel
    @MatthijsKrempel
    Meeting? Or,....?
    Sébastien Ros
    @sebastienros
    in an hour, right?
    Matthijs Krempel
    @MatthijsKrempel
    Ah yes, that works, .
    Dean Marcussen
    @deanmarcussen
    @sebastienros great I missed that push
    Omid Nasri
    @omidnasri
    In the latest question, I asked how I can show top 6 post In the my custom page that Jean-Philippe answerd my question. But I have a new question! how I can set a page is post detail to show me post detail.
    This is my home page: http://www.crm-support.ir/blog/
    but when a user click on the every post, my custom page will be load post detail.
    Sébastien Ros
    @sebastienros
    @omidnasri you have <a href="blog-post.html"> hard coded, you need to use the url of the content item
    Omid Nasri
    @omidnasri
    Ya, I understand but
    how I can set a custom page to page detail.
    Sébastien Ros
    @sebastienros
    {% a display_for:Model.ContentItem %}
    Jasmin Savard
    @Skrypt
    or
    <a href="{{ Model.ContentItem | display_url }}" />
    Omid Nasri
    @omidnasri
    No, I got it wrong
    I want to set a custom page to load blog post
    but I don't know how I can.
    Jasmin Savard
    @Skrypt
    custom template or custom route?
    Omid Nasri
    @omidnasri
    custom template on the custom page
    Jasmin Savard
    @Skrypt
    Is that page a BlogPost or a Blog?
    Omid Nasri
    @omidnasri
    blog post
    Jasmin Savard
    @Skrypt
    then the /data url is generated from your AutoroutePart?
    Omid Nasri
    @omidnasri
    ya
    Jasmin Savard
    @Skrypt
    And on your frontpage you are displaying a list of BlogPosts right?
    Which each of them have an AutoroutePart record set
    Omid Nasri
    @omidnasri
    displaying blog post detail.
    Jasmin Savard
    @Skrypt
    When you do Model.ContentItem | display_url it will compose an absolute url containing the domain name details with the AutoroutePart.Path
    So, on your frontpage
    The anchor href should not be /blogpost.html
    since you are probably doing a foreach
    it will be something like
    foreach(var item in yourQueryResult)
    {
    <a href="{{ item.ContentItem | display_url }}" /></a>
    }
    Omid Nasri
    @omidnasri
    Thx but.
    Jasmin Savard
    @Skrypt
    send me the blog template
    else I don't understand the issue
    :D
    Omid Nasri
    @omidnasri
    Thx, it's my problem that can't type correctly.
    So, I want generate theme for this page -: http://www.crm-support.ir/blog/data
    But I don't know how
    Jasmin Savard
    @Skrypt
    Look in the TheBlogTheme
    Content-Blog.liquid
    Content-BlogPost.liquid
    Content-BlogPost.Summary.liquid
    If you don't have these templates in your theme then copy them over to yours
    Amir Modjtabaa Padashi
    @ampadashi
    @omidnasri If you're in Iran, call me. i'll explain u
    Omid Nasri
    @omidnasri
    OK