W
W
Wasya UK2017-05-07 11:02:58
Node.js
Wasya UK, 2017-05-07 11:02:58

How to create a user page correctly?

There is a current user and his main page. There are also other users with their pages, which have slightly different functionality. But, in many ways, the pages are similar. Should I create 2 templates, and then choose the one I need from them, or create 1, but specify the condition in it: if the main one, then this functionality, and if it’s someone else’s page, then this functionality? Maybe there are other ways? Thanks in advance)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
V Sh., 2017-05-07
@dmc1989

Read about master pages. In short: everything that the pages have in common (menus, styles, columns, etc.) is placed on the Master Page, everything that is not included there and should be different on different pages is placed on the page itself. It turns out something like a container: . This is one way. <Mastepage><Page></Page></Masterpage>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question