Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jerry 23 posts 73 karma points
    Apr 01, 2013 @ 00:56
    Jerry
    0

    having a structural problem

    Hi all

    I helping my client developing a news paper site, my plan is having 2 doc type, 1st master, 2nd textpage,

    haveing many templates, few are nested templates.

    content graph:

    Master:

         -- news

               -- insert news

               -- view news

         -- blogs

        -- papers

    Temp :

        -- news Tmp

                 -- insert news Tmp

                 --  view news Tmp

     

    The problem is I have to put Links from Content ( you know as a page ) into news Tmp to make insert news and view news available. when i have a lot of links, then become very bad

    any other way to do this? or xslt can handle them

    any better suggestions?

     

  • Charles Afford 1163 posts 1709 karma points
    Apr 01, 2013 @ 16:09
    Charles Afford
    0

    Hi, could you tell me a bit more about the structure of your XSLT and what you are trying to do.  As i understand it you have that structure and the problem is that you will have ALOT of <a href=""></a>....

    Why have you got newsTmp ect?  What do they do?

    Yea i am pretty sure there will be a better structure.  Will try and help you out :).  Charlie :).

  • Jerry 23 posts 73 karma points
    Apr 01, 2013 @ 21:42
    Jerry
    0

    i am only a begginer (2~3 months ) on umbraco, as far as i understand now:

    i need to create a tree type of pages, master,nestedmaster1, nested master2, header content, body content, footer conten   (i think most all coder will do the same)

    now, every page (in content) i produce a template for it. (i assume this load exact thing i wish to load)

    same as master and nested master, bodycontent, in content and setting->template

    in content

    -master

         --News

                ---TV News

                       ----Business news

                       ----Entertainment news

                ---Newspaper News

                    ----Business news

                    ----Entertainment news

                ---Internet News

                     ----Business news                 

                     ----Entertainment news

    same as in settings->template

    at the end they all will load a article page with article id like  :  My.com\Internet News\BusinessNews\Article=1234

    what i am trying to do is creat an xslt or user control to generate a branch of links that My.com\Internet News\BusinessNews\

    I think i can solve it by using get xmlnode,  but just not sure i am on the right track??

    bytheway do i have to have one page(in conten) with one template? or many pages load one template ( this template need to know the differen then it can load differen user controls )?

     

    Thanks for all viewing and helping.

     

     

     

     

     

  • Charles Afford 1163 posts 1709 karma points
    Apr 02, 2013 @ 10:24
    Charles Afford
    0

    HEllo, i am not totally sure what you are asking :).  What you need to do i think is use an xslt file.  Then use a loop to iterate thought the node in the content tree.

    You can have one template for all of the pages or lots of templates for some of the pages.

    SO:

    HTML (TEMPLATE)

    YOURTEMPLATE1(TEMPLATE) 

    YOURTEMPLATE2(TEMPLATE)

    YOURTEMPLATE3(TEMPLATE)

    YOURTEMPLATE4(TEMPLATE)

     

    ---TV News (YOURTEMPLATE1)

                       ----Business news(YOURTEMPLATE2)

                       ----Entertainment news(YOURTEMPLATE2)

     

Please Sign in or register to post replies

Write your reply to:

Draft