Creating a Custom Page Layout in WPS 7002

I followed these steps to add a custom page layout in the WPS 7002.
  1. Create a folder named CustomLayout under /fs-type1/themes/webspherenotes.firstmodular/layout-templates/ folder
  2. Copy the layout.html and icon.gif from say 1Column folder and copy it to CustomLayout folder after the copy it should look like this
  3. Copy the newly created CustomLayout folder to the /fs-type1/themes/webspherenotes.firstmodular/layout-templates/ in WebDav storage like this
  4. Change the markup of layout.html in the CustomLayout folder to look like this <!-- Entering CustomLayout.layout.html --> <div class="component-container wpthemeCol wpthemeCol-1 ibmDndColumn wpthemeLeft" name="ibmMainContainer"></div> <!-- Entering CustomLayout.layout.html --> I made changes to take out the section that displays hidden widgets on the page and i also did add the HTML comments to show beginning and end of the layout
  5. Then open the /fs-type1/themes/Portal7.0.0.2/system/layouts.json which holds list of layouts that appear in the change layout panel. change it to add one row for newly create CustomLayout like this { 'label':'change_layout_CustomLayout', 'url':ibmCfg.themeConfig.themeWebDAVBaseURI+'layout-templates/CustomLayout/', 'id':'CustomLayout', 'thumbnail':ibmCfg.themeConfig.themeRootURI+'/layout-templates/CustomLayout/icon.gif', 'help':'' }
  6. After make changes copy the layouts.json file to the WebDAV folder
  7. Now try opening the change layout UI and you might not see the newly added CustomLayout in the option, or you might if you do you will see option to switch to CustomLayout like this. If you dont see CustomLayout option go to next step
  8. In my case i was not able to see the option for CustomLayout so i looked in the firebug what is going on and it seems that when i go to Change Layout tab browser makes a request to http://localhost:10039/wps/mycontenthandler/!ut/p/digest!EWsjUKfQQnHqfLpBEXvbog/dav/fs-type1/themes/Portal7.0.0.2/system/layouts.json and the browser was using the cached copy for this file and as a result the changes in the layouts.json were not getting reflected. So i did disable the browser caching using firebug like this
  9. After that when i did refresh the page and i could see the new layouts.json being returned by the server and as a result i could see the change custom layout button


Anonymous said...

Thank you!! I too had to disable my browser cache. I wasted a lot of time trying to figure out why I wasn't seeing my changes until I saw your post.


Great information in this post thanks for sharing...!
website designing

odms digital said...

I got a many tips here.Thanks for the tip and also for being open to having comments on your blog to help others.
web design & development

odms digital said...

Thanks for posting these instructions!
A helpful blog for anyone in the SEO services world. Thank you!
web design & development

Jason Borne said...

Nice post and great content.
Avast Customer Support is here to help you out with the whole procedure to Download Avast Antivirus online, We not only fix your Avast Support related issues but will guide with how to get started with your new Avast product once it gets installed successfully. We at Avast Tech Support provides service to protect your PC from potential online threats and external attacks like viruses, Trojans, malwares, spywares and phishing scams. And Avast Refund. Call on our Avast Phone Number

Gmail Customer service is a third party technical support service for Gmail users when they face any technical issue or error in their Gmail account. Our Gmail Customer Support team solves issues like forgot Gmail account password, Gmail configuration or Sync issues, recover deleted emails and many more. Toll Free number (800) 986-9271

How you install or reinstall Office 365 or Office 2016 depends on whether your Office product is part of an Office for home or Office for business plan. If you're not sure what you have, see what office com setup products are included in each plan and then follow the steps for your product. The steps below also apply if you're installing a single, stand-alone Office application such as Access 2016 or Visio 2016. Need Help with office setup Enter Product Key? Call 1-800-000-0000 Toll Free
Norton Tech Support is a third party service provider and not in any way associated with Norton or any of its partner companies. We offer support for Norton products and sell subscription based additional warranty on computer and other peripheral devices. Call our Toll Free number 1 855 966 3855
Other Services
Norton Toll Free , Office-Setup ,

siriit-solutions said...

Thanks for your valuable information..Its a helpful blog to have comments for SEO services
Wordpress Developers Hyderabad
best cms web development services Hyderabad