Unable to create blank page without head - Magento2 - magento2

I have created the new layout called new layout inside my page layout folder and copied the contents of empty layout. The head content coming from the root template which i am unable to overwrite.
In mangento, I have done same using the new layout file, i have removed getChildHtml('head') ?>
This allows me to remove the head section.
Since magento can able to create any web app. i need to create a bank page using new layout.

Related

Collapsible accordion in form-list?

I have successfully implemented a collapsible accordion on fields inside a form-single tag, however I am unable to do so on fields in a form-list tag. The "Making Apps with Moqui" documentation covers accordion implementation only within form-single, so i checked the xml-form-2.0.xsd file and nowhere does it say that field-accordion (and by extension field-group, field-layout). Is it possible to have a collapsible form-list, or is it indeed only reserved for single forms? I should also add that my form-list resides inside a container tag.

How to define tab amount and name in Ionic 2 when creating new project?

When creating new App in ionic 2, we use this command:
ionic start --v2 myApp tabs
By default, it creates 3 tabs and pages: Home, Contact and About.
Is it possible to define the number and names of the tabs to be created?
As far as I know you can't dynamically define the tabs and pages since this is an already made template which is available here tabs template. However you can still define your own by jumping into the files generated in your project and modifying the tabs.html to show your desired names and the pages inside the pages folder to the pages you want.

overriding setResponsePage() to build breadcrumb

I 'm trying to build my own simple breadcrumb component that pushes a PageRefence onto a List for each and every Link in the application.
Unfortunately, setResponsePage() is final (I use wicket 6).
The only other option that comes to my mind is to add a parameter to my base page constructor. But this would require me to change every link in the app..
Are there any other options?
Since you already have a base page, it's easier to override onBeforeRender() in your base page to update the breadcrumbs list that you'd store in your Session object.
Or am I missing something?
To answer my own question:
In the end I realized, that I do not want to have the breadcrumb updated on each new page.
Therefore I created an object that holds a List of Pagereferences. When I navigate to a new Page, I take the list of the current page, make a copy of it an add the current page. The resulting list is pased onto the new page.
All this is handeld in the base page.
Keeping it in the page, avoids problems with multiple tabs / windows.
Thanks for the help.

To know if its a new page in ITEXT pdf

I am generating a pdf using itext. So when the content of a page exceeds it creates a new page automatically. I am trying to know if it created a new page. If yes I want to add some image on top of the page.
List paylist =new List(List.ORDERED, List.ALPHABETICAL);
paylist.setIndentationLeft(10);
paylist.add(new ListItem("Some text", yourfont));
document.add(paylist);
The content of the list will be dynamic. So I am unable to find whether its a new page it is in the same page. Suggestion please..
Subclass PdfPageEventHelper and bind an instance of it to your PdfWriter:
writer.setPageEvent(new YourCustomPageEventHelper());
Within that class there's a method called onStartPage that will be called for every page in your document. Use this to add an image to every page, then you don't have to worry about keeping tracking of things. See this page for a bunch of samples.
Check the page number before and after you add content to the document. If the value is different, then a new page has been created.
The page number is returned by the PdfWriter.getPageNumber() method.

Plone/XDV Related Item Overlay is Empty

I have a Plone 4 site using collective.xdv for the theme. Overlays for the login and contact form work fine.
But if I go to edit > categorization tab and try to add a related item, the overlay is blank. Looking at it in Firebug, the tags are correct down to div.overlaycontent. But inside of that div is my static HTML from the XDV theme's index.html.
Is there a special rule that I need for the overlays?
I cannot use plone.app.theming because this site is using more than just Plone.
In the xdv configuration(or append "##xdv-settings" onto site url), you can add unstyled paths.
I think what you'll need is:
^.*/referencebrowser_popup(\?.*)?$
or
^.*refbrowser_popup(\?.*)?$
If neither of those work, figure out the url that's being requested and add it as an unstyled path.