Composite C1 - How to have multiple editable areas in a master layout - c1-cms

I have a MasterLayout.cshtml (same as in example site).
As I understand it there can only be one area where page templates can insert content?
However - I would like the main content area to be editable - and a footer area, to be editable on every page - without having to duplicate the structure of the end of the main area and the start of the footer on every page template.
Is this somehow possible?

You can move repeating parts of the template to page template features, editable in the Layout perspective.
http://docs.composite.net/Layout/Page-Template-Features
The editable parts of the content on a page can be defined as content placeholders in a template.
http://docs.composite.net/Layout/Razor-Page-Templates/Adding-Placeholders

Related

Differentiating two views with same controller for different user in angular

I have two different views of each page in an application. One view is the editable view where a user can come and edit stuff.This view has Buttons, Text Input, Text Area etc. The other view is used to just view the data. The buttons should be hidden, Text Input, Text Area which were editable should be replaced with label.
So I have a doubt whether I should have:
(i) two different html files for each view which can be changed inside the router
(ii)same html file and use ng-if
(iii)same html file and create directive for each change
This depends on how many ng-if directives you have to create. In other words how large your view is.
If it is a small view - go for ng-if.
If not, use a separate template for the view.

Drupal 7 - how can I control content layout in a view?

I've been handed a design spec which requires a news listing in a specific format - e.g. image floating to the left, with the main title and content on its right.
I've created the articles listing using the views module and embedded the view as a block on the front page. However, I need to change the layout of the resulting list of items at an html level, as the items are not provided in the order or within the html tags that I need in order to deliver the design.
In order to style the output, I really need the views module to give me fine-grained control over the html tags being wrapped around each field for each article.
Is this possible in Drupal?
(edit: please note, this is not a css question - I know how to float and position things in css. I need to be able to modify the html tags applied to fields in a view - thanks!)
When you go to your view, you will see FORMAT. You can change the Format to HTML list with corresponding settings. Under Show, you will say Fields. In the FIELDS area, choose which content you want enabled. Let me know if this helps, or if you want more of an explanation. Go back into your view and click on your field. The next window that pops up should be to configure that field. You'll see style settings where you can define the HTML tags, classes, wrappers, etc.

complex grid layout in AngularJS

Am a newbie to AngularJS. I want to create a gridview layout where each item in the grid is a bit complex layout. For example, an item may have a text, an image and a button. This has to repeat several times over the entire data fetched from the DB & displayed as a grid. A rough sketch of what am saying :
in the above image, each item in the grid has an image & a text. Imagine each item also having two or three more buttons.
Google+ layout is also similar :
I can use ng-repeat, but I want a more nice solution (similar to GridView in the Android world). Also, I want to be able to change a specific item in the grid & reload only that item without reloading the entire grid.
Can someone please help?

anchor tags and dynamic views in angular.js

I'm taking my first steps with angular, looks promising but i have some issues, hope someone can help.
i have a long html page divided to sections
each section is an anchor tag, you can navigate to it from top menu.
the content in each section changes according to some parameters the user selects.
so the 3rd section's content for instance can be different(template) each time.
my problem:
i would like to dynamically load views into the section.
as i understand it i have only one ng-view that corresponds to specific rout.
how can i load a view (template+controller) dynamically as the user slides to the anchor tag?
thanks

WPF Page Anchor Links

Is there a way to navigate WPF pages with anchor links? I have a large page for my application and without having to split it up I'd like to be able to scroll it and also jump to specific header areas.
thanks!
A "possible" solution is to use FrameworkElement.BringIntoView which attempts to bring the target element into view, within any scrollable regions it is contained within.

Resources