Difference between revisions of "Patch Launcher Add or Delete Pages"

From WebOS Internals
Jump to navigation Jump to search
(cutting down to size....)
Line 32: Line 32:
<div class="page-tags">
page tags:
<a href="/system:page-tags/tag/hidden-functionality#pages">hidden-functionality</a>
<a href="/system:page-tags/tag/launcher#pages">launcher</a>
<a href="/system:page-tags/tag/luna#pages">luna</a>
<a href="/system:page-tags/tag/tweak#pages">tweak</a>
<a href="/system:page-tags/tag/ui#pages">ui</a>
<a href="/system:page-tags/tag/webos#pages">webos</a>
<!-- google_ad_section_end -->
<!-- google_ad_section_start(weight=ignore) -->
<div style="clear:both; height:1px; font-size:1px;"></div>
<div id="page-info">page_revision: 5, last_edited: <span class="odate">1245847491|%e %b %Y, %H:%M %Z (%O ago)</span></div>
<div id="page-options-bottom"  class="page-options-bottom">
<a href="javascript:;" id="edit-button">edit</a><a href="javascript:;" id="tags-button">tags</a>
<a href="javascript:;" id="history-button">history</a>
<a href="javascript:;" id="files-button">files</a> <a href="javascript:;" id="print-button">print</a> <a href="javascript:;" id="site-tools-button">site tools</a><a href="javascript:;" id="more-options-button">+&nbsp;options</a>
<div id="page-options-bottom-2" class="page-options-bottom" style="display:none">
<a href="javascript:;" id="edit-sections-button">edit sections</a>
<a href="javascript:;" id="edit-append-button">append</a>
<a href="javascript:;" id="edit-meta-button">edit meta</a>
<a href="javascript:;" id="watchers-button">who watches</a>
<a href="javascript:;" id="backlinks-button">backlinks</a>
<a href="javascript:;" id="view-source-button">view source</a>
<a href="javascript:;" id="parent-page-button">parent</a>
<a href="javascript:;" id="page-block-button">block</a>
<a href="javascript:;" id="rename-move-button">rename</a>
<a href="javascript:;" id="delete-button">delete</a>
<div id="page-options-area-bottom">
<div id="action-area" style="display: none"></div>
<div id="footer" style="display: block; visibility: visible;">
<div class="options" style="display: block; visibility: visible;">
<a href="http://www.wikidot.com/doc" id="wikidot-help-button">
help </a>
<a href="http://www.wikidot.com/legal:terms-of-service"  id="wikidot-tos-button">
terms of service </a>
<a href="http://www.wikidot.com/legal:privacy-policy"  id="wikidot-privacy-button">
privacy </a>
<a href="javascript:;" id="bug-report-button"
report a bug </a>
<a href="javascript:;" id="abuse-report-button"
flag as objectionable </a>
Hosted by <a href="http://www.wikidot.com">Wikidot.com</a> &#8212;
professional wiki solutions
<div id="license-area" class="license-area">
Unless stated otherwise Content of this page is licensed under <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 License</a>
<div id="extrac-div-1"><span></span></div><div id="extrac-div-2"><span></span></div><div id="extrac-div-3"><span></span></div>
  <div id="footer-bar">
  <h2>Other remarkable sites from Wikidot</h2>
      <div class="unit">
      <div class="inner">
        <a target="_blank" class="image" href="http://chi2.wikidot.com">
          <img class="thumbnail" alt="" src="http://www.wikidot.com/site_thumbnail.php?site=chi2"/>
        <h3><a target="_blank" href="http://chi2.wikidot.com">CHI-JHUMC</a></h3>
        <div class="desc">         
      <div class="unit">
      <div class="inner">
        <a target="_blank" class="image" href="http://felipemayworm.com">
          <img class="thumbnail" alt="" src="http://www.wikidot.com/site_thumbnail.php?site=felipemayworm"/>
        <h3><a target="_blank" href="http://felipemayworm.com">Felipe Mayworm</a></h3>
        <div class="desc">         
      <div class="unit">
      <div class="inner">
        <a target="_blank" class="image" href="http://jaaga.wikidot.com">
          <img class="thumbnail" alt="" src="http://www.wikidot.com/site_thumbnail.php?site=jaaga"/>
        <h3><a target="_blank" href="http://jaaga.wikidot.com">Jaaga</a></h3>
        <div class="desc">         
      <div class="unit">
      <div class="inner">
        <a target="_blank" class="image" href="http://city.info-4.me">
          <img class="thumbnail" alt="" src="http://www.wikidot.com/site_thumbnail.php?site=site-1"/>
        <h3><a target="_blank" href="http://city.info-4.me">City.Info-4.Me</a></h3>
        <div class="desc">         
<!-- These extra divs/spans may be used as catch-alls to add extra imagery. -->
<div id="extra-div-1"><span></span></div><div id="extra-div-2"><span></span></div><div id="extra-div-3"><span></span></div>
<div id="extra-div-4"><span></span></div><div id="extra-div-5"><span></span></div><div id="extra-div-6"><span></span></div>
<div id="page-options-bottom-tips" style="display: none">
<div id="edit-button-hovertip">
Click here to edit contents of this page. </div>
<div id="page-options-bottom-2-tips"  style="display: none">
<div id="edit-sections-button-hovertip">
Click here to toggle editing of individual sections of the page (if possible).
Watch headings for an "edit" link when available. </div>
<div id="edit-append-button-hovertip">
Append content without editing the whole page source. </div>
<div id="history-button-hovertip">
Check out how this page has evolved in the past. </div>
<div id="discuss-button-hovertip">
If you want to discuss contents of this page - this is the easiest way to do it. </div>
<div id="files-button-hovertip">
View and manage file attachments for this page. </div>
<div id="site-tools-button-hovertip">
A few useful tools to manage this Site. </div>
<div id="backlinks-button-hovertip">
See pages that link to and include this page. </div>
<div id="rename-move-button-hovertip">
Change the name (also URL address, possibly the category) of the page. </div>
<div id="view-source-button-hovertip">
View wiki source for this page without editing. </div>
<div id="parent-page-button-hovertip">
View/set parent page (used for creating breadcrumbs and structured layout). </div>
<div id="abuse-report-button-hovertip">
Notify administrators if there is objectionable content in this page. </div>
<div id="bug-report-button-hovertip">
Something does not work as expected? Find out what you can do. </div>
<div id="wikidot-help-button-hovertip">
General Wikidot.com documentation and help section. </div>
<div id="wikidot-tos-button-hovertip">
Wikidot.com Terms of Service - what you can, what you should not etc. </div>
<div id="wikidot-privacy-button-hovertip">
Wikidot.com Privacy Policy.
<!-- google_ad_section_end -->
<div id="account-notifications-dummy" style="display:none"></div>
<div style="display:none" id="dummy-ondomready-block"></div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-9343099-1";
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uff = false;
_uacct = "UA-68540-5";
<!-- Start Quantcast tag -->
<script type="text/javascript">
<script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
<img src="http://pixel.quantserve.com/pixel/p-edL3gsnUjJzw-.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
<!-- End Quantcast tag -->

Revision as of 03:33, 20 July 2009

Add/Delete Pages in the Launcher

This is a quick tutorial on how to add or delete pages in the Launcher.

Someone in the forum talked about being able to add and delete pages in the Launcher app and I thought I would look into it further. They stated that they were able to add new pages and delete existing pages.

Upon further investigation, they were correct. There is existing code in a particular js file that has been commented out that will allow you to create a new page and delete the current page you are on in the Launcher. There is a variable that stores the max number of pages to 10. This value can probably be increased, but I don't recommend it and seriously, who would need more that 10 pages anyway, right?

After I uncommented these said lines and rebooted, I was able to perform these functions. So I tested the new page function.

The new page and delete page functions will appear in the launcher app menu.

Creating/adding a page:

This will create a new page and move whatever page you were on to the right. There is nothing special to this page besides the fact that you now have a new page. I was able to drag icons to it just like any other page. To test this new page out I added a contact to that page.

Deleting/Removing a page:

The code is already set up to automagically move any icons to the page to the left of the page you are deleting. What I mean is if the page you delete is in the middle of other pages it will toss whatever was on your current page to the page to the left of it.

When I deleted a page that was to the left of the apps page that had web app defaulted to it, it tossed the icons to that page because there is no page to the left of the one I just deleted.

Creating/adding multiple pages:

So I was on page 1 and created a new page. Then I moved over to the page where device info, backup, screen & lock was at and created a new page there. It tossed the page to the right and made a new page.

Uncomment the Following


Look for "appMenuModel" (line 27) a few lines below you will see a line that has "newpage" in it.
On the line that remove the "/*" and on the line that has "deletepage" remove the "*/"

Next look further in the file (line 119) for "switch" again remove the "/* and "*/" that surrounds the cases for newpage and deletepage.

reboot and now you'll have new page and delete page in the launcher app menu.

Note that you can download a patch for this at <a href="http://gitorious.org/webos-internals/modifications/blobs/raw/master/applauncher/add-delete-pages-in-the-launcher.patch">http://gitorious.org/webos-internals/modifications/blobs/raw/master/applauncher/add-delete-pages-in-the-launcher.patch</a>

<img src="http://img195.imageshack.us/img195/7636/unknown20091306141631.png" alt="unknown20091306141631.png" class="image" />

-PS I moved the location of the edit menu down…


The credit to this goes to someone in the forums, at the time this was written I wasn't able to find out who exactly was it who wrote about it first (purely I don't have the time to look.) Pyrognome tested and confirmed the new page and delete page functionality.