Site Index using Page Titles

I'm wondering if there is a way to generate a site index that displays page titles instead of the full url. I'd like to provide a page that lists a site index in such a format. I have a php site with over 300 pages. Is there a tool out there for this? I already reset the default sitemap to TRUE - using Dreamweaver CS5.5, but the map view says I have to specify the homepage?? What do the experts suggest here?
Many thanks - I always value the input from this forum.

Easy. Create a PHP function file_get_contents and pass the URL of the page you'd like to grab the title for.
Do a regular expression match for <title></title> and grab the contents.
Echo it in your HTML.
Here's a code you can use:
<?php
function returnTitle($Url){
    $str = file_get_contents($Url);
    if(strlen($str)>0){
        preg_match("/\<title\>(.*)\<\/title\>/",$str,$title);
        return $title[1];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Title generator</title>
</head>
<body>
<?php echo returnTitle("http://www.google.com/");?><br>
<?php echo returnTitle("http://www.adobe.com/");?><br>
<?php echo returnTitle("http://www.microsoft.com/");?><br>
<?php echo returnTitle("http://www.apple.com/");?><br>
<?php echo returnTitle("http://www.forums.adobe.com/");?><br>
<?php echo returnTitle("http://forums.adobe.com/message/4917208#4917208");?>
<!-- Add more (as many as you'd like!) URLs here-->
</body>
</html>
Name the file .php and run it from MAMP/ WAMP or on a webserver.
-ST

Similar Messages

  • How can I save the web page by using the Page Title as the file name ?

    When i use Internet Explorer ,I can save the web page by using Page Title as the file name(as default no need to adjust anything). But when i use Firefox ,It can not use the Page Title to save as the file name. How can I do that like in Internet Explorer?

    See:
    *File Title: https://addons.mozilla.org/firefox/addon/834
    *Title Save: https://addons.mozilla.org/firefox/addon/712

  • Changing Page Title

    I would like to change the Title for my site. It seems that the only title you can have is the Domain name as far as I can tell using Iweb 08. Does anyone know how to change the main Title line of the site.
    Thanks

    The problem is when you host uses frame to forward to your .mac site, your .mac page title will not show up on title bar, the frame title will (aka mask forwarding).
    You can ask your host to do regular forwarding, your page title will show; but address bar will show http://web.mac.com/blahblahblah
    or you can add this to your page, using HTML Snippet and use your host mask forwarding:
    <script type='text/javascript'>
    parent.parent.document.title = parent.document.title;
    </script>
    BTW, you have to add it to EVERY page, here is an example:
    http://hdl.50webs.com/BkgndMusic/Welcome.html
    the page title is either Major or Minor regardless the address bar is: blahblahblah/Welcome.html

  • Change the Page title of Default.aspx in SharePoint Hosted App using ECMA Script

    Basically i want to change page title dynamically. the thing is default.aspx page is present in the below location
    Folders/Pages/Default.aspx ( Verified using
    SharePoint Manager 2013 Online )
    Could any one let me know how to iterate through the folders and then go to pages and change title of Default.aspx page?
    Navaneeth

    All the links which is mentioned above is either they are doing it in code behind or javascript like document.title.
    I want to change dynamically using ECMA script. the point i found here is if you use the below code you will get an error saying list "Pages" does not exists in the SharePoint site.
    clientContext.Web.Lists.GetByTitle("Pages");
    So i am wondering how can we change the page title of SharePoint hosted app ( Default.aspx) dynamically
    Say example i have one text box and submit button. when give the title in the text box and click on submit  the title should reflect in the page.
    Navaneeth

  • Site index--Message-"Home page is missing"

    I have a few sites that use index.html or index.htm or
    welcome.html or default.htm as the home page.
    But sometimes Dreamweaver says it can't create a site map
    because the home page is missing.
    Is there a simple fix?

    > But sometimes Dreamweaver says it can't create a site
    map because the home
    > page is missing.
    open the dw files panel, and right-click on the desired
    "homepage" file.
    Pick "use as homepage"
    does that fix it?
    If the message "homepage is not in site folder" keeps coming
    up no matter
    what- Are you on a mac?
    Is there a "funky" character in the hd name, your Username,
    or in the folder
    path down to this site folder?
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • As a writer I'm using Pages to write my documents but the title shows up on every page.   How do I set-up my page so that it shows up on only the first page?

    As a writer I'm using Pages to write my documents but the title shows up on every page.   How do I set-up my page so that it shows up on only the first page?

    Don't put it in the Header.
    Peter

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • I'm having trouble formatting a book I'm writing using Pages. I need to put my name and book title in the upper left hand corner of EACH page- opposite the page number. How do I do this?

    I'm having trouble formatting a book I'm writing using Pages. I need to put my name and book title in the upper left hand corner of EACH page- opposite the page number. How do I do this?

    And if this is the new IOS Pages v2 (or the older IOS Pages 1.7.2), you click the wrench icon and then Document Setup. Tap the document header to edit it, and apply the same instructions that I gave previously for OS X Pages v5.
    The process for Pages ’09 v4.3 is slightly different. You click the Header, and enter your document title and your name as previously described. You will need Menu > View > Show Ruler. Click once in the ruler at the first or second mark after the 7 inch (roughly 18cm). This will set a tab. Now position the insertion mark behind your title and tab once to the mark you set. Now you can Menu > Insert > Auto Page Numbers ...

  • Feature Request: Set a hosted gateway page title using the IDK

    Hi Folks,
    I'd like to have a method added to the IPortletResponse interface called setPageTitle(String pageTitle) that would set the browser title bar to the String pageTitle.
    This is extremely important for SEO and for usability (because if you minimize a bunch of browser windows pointing to hosted gatway pages, they all say "Gateway" and you have no idea what the bleep is actually in those windows).
    Thanks!
    Chris Bucchere | bdg | [email protected] | www.bdg-online.com

    This is possible using the title attribute of the displaymode tag. See http://edocs.bea.com/alui/devdoc/docs60/References/API_Libraries/TagDocs/standard/displaymode.html for more info.

  • Nested site navigation using Web Page Composer (WPC)

    Is it possible to nest navigation nodes using Web Page Composer?
    I have created a WPC site and added pages, but I am required to create a node with sub-pages (similar to adding a folder to a workset) for a site.
    Has anyone done this or know how to easily do this?  I do not want to maintain a separate WPC site (and corresponding workset folder) for each navigation node/group in the structure hierarchy.
    This is an example of what we are trying to accomplish in our navigation structure using a single WPC site:
    * Page 1
    * Page 2
    + Group 1
        * Page 3
        * Page 4
    + Group 2
        * Page 5
        * Page 6
    * Page 7
    Thanks in advance...
    Points will be awarded for helpful answers.

    Hi Angie,
    Could you please guide how to make the RSS link lists work in WPC, we do not receive any updates from external websites.
    Thanks,
    Shravs

  • Can a library item be used to personalize a page title?

    Hi, I do not think this is possible, but is there a way to use a library item to personalize part of a page title? Thanks in advance, Mark

    In that case, you should have your <title> tags within a Template Editable Region so you can use a unique title on every page.
    In addition, you should make good use of Heading tags <h1> <h2> and <h3> within editable regions to promote keyword rich content that tells search engines & humans what your pages are about.
    Google's SEO Starter Guide (PDF)
    http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • I use Firefox 'Most Visited' for easy access to the websites I use every day. I inadvertently clicked 'Forget About This Site' on a page that I need. That page is gone, apparently permanently, from my 'Most Visted' list. How can I get it back?

    I use Firefox 'Most Visited' to access websites I use many times every day. I inadvertently clicked 'Forget About This Site' on a page listing that I need. That page is gone, apparently permanently, from my 'Most Visited' list. No matter how many times I re-visit the page, it will not show up on 'Most Visited'. How can I get it back? Thanks!

    Most Visited is an automatically generated list that shows sites that you've visited.<br />
    If you delete the history of a site then you have with a visit count of zero.<br />
    To make that site reappear in that you you will have to visit that site often enough to make the visit count match the other sites in that list or clear the history from other sites in that list.
    You can make the Visit Count column visible in the History Manager to see how many times you've visit sites.
    *http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox

  • Personal customisation of page title using liquid

    Hello all,
    I am looking to customise the title of the webpage so that the top of the browser window will be personalised based on a parameter passed through the url.
    I am trying this:
            {% for listing in MDListings.items %}
            {% if {{globals.get.MID}} == {{listing.itemid}} %}
            {% assign pagetitle = {{listing.name}} %}
            {% endif %}{% endfor %}
            <title>{{pagetitle}}</title>
    When I insert it into the <head> portion and update the page, the whole chunk will move to the body automatically.
    When I run the liquid script in the body the output is fine.
    So my question is, how do i change the page title using liquid? Or is there another way to do so if liquid is not needed/recommended?
    Would someone enlighten me about this? Thanks!!

    Hi Liam,
    What I'm trying to do is to display a webapp on a custom page NOT using the module_webapps detail layout. This is because I need to produce results from 2 different categories and I'm using a connector webapp to link the categories to the webapp listing.
            {module_webapps id="" render="collection" collection="MDListings" template="" filter="all"}         {module_webapps id="" render="collection" collection="MDCategories" template="" filter="all"}         {module_webapps id="" render="collection" collection="MDConnectors" template="" filter="all"}         {% for listing in MDListings.items %}                {% if globals.get.MID == listing.itemid %}                   {% assign pagetitle = listing.name %}                                     {% endif %}         {% endfor %}        OR         {module_webapps id="" render="collection" collection="MDListings" template="" filter="all"}         {module_webapps id="" render="collection" collection="MDCategories" template="" filter="all"}         {module_webapps id="" render="collection" collection="MDConnectors" template="" filter="all"}         {% for listing in MDListings.items %}                {% if globals.get.MID == listing.itemid %}                   {% assign pagetitle = listing.name %}                  {% endif %}         {% endfor %}          
    So this content here is inside the html file that I have which I am going to use as the custom page for displaying the listing. I'm extracting the ID through the URL, then searching through the webapp list for the specific item, then extracting the information from that item.
    I can extract those information easily, however I want to make use of the name of that item and modify the page title which will change the browser page name. However when i do it in the above method, the browser will display {{listing.name}} in the first method and {{pagetitle}} in the second.
    I'm wondering if i am doing this correctly, or is there an easier way to do whatever I'm doing?

  • Firefox used to distincly highlight previously visited sites (on results page) and 'snap to' the previously used part of the results page. Not any more! Help please.

    Firefox used to distinctly highlight sites already visited when returning to a results page.
    It also used to 'snap to' the area of the results page just visited.
    This no longer seems to happen. Please avise

    ''History not being saved was the solution to chrisjh's problem as solved by lynnebowes.''
    There are a couple of reasons why one might not be able to distinguish between visited and unvisited links on a web page.
    # History is not being preserved. ''(already covered)''
    # Bad web site design.
    '''History must be preserved'''
    :In Firefox '''Tools > Options > Privacy''' picture of " [http://img232.imageshack.us/img232/4928/clearcachew.png Using and Preserving History Settings]"
    '''Bad web site design and some solutions'''
    :There is another reason why one might not be able to distinguish between visited and unvisited sites and that is bad web page design, and one which Mozilla designing web pages should not be guilty of because they build web browsers but how many people can quickly identify between read(visited) and unread(unvisited) pages on Mozilla's pages including this one.
    Web browsers started with some things already in place; links were underlined no one had color monitors and the links were visible when printed. I guess you can tell by the off-color where links probably are. But what is more important is to be able to be able to '''distinguish visited''' from '''unvisited links''' so you don't keep reading the same old article each time, or so that you can find an article you've read before in either case visited links are an important identification in webpages. It's also important to be able to identify what the links are. You wouldn't want to go to one site that uses completely different colors or reversed the normal colors for links-- that would be very confusing.
    Some important tools for users are being to styling off, or to choose the colors. It is a it easier when you have a toolbar button to switch things rather going into '''Tools > Options > General > Advanced''' and mess with colors there.
    Another way is use a theme or a style to change the appearance ([http://www.csszengarden.com/ css Zen Garden]) of a specific website t0 something interesting but not necessarily for conveying information quickly.
    Some notes and a style to help make '''support.mozilla.com''', '''google.com''' and some '''mozillazine.com''' pages more readable can be found at [http://userstyles.org/styles/16842 Red: Mark visited links as read on unruly domains - userstyles.org]

  • Site Index Portlet - Doesn't show page tree

    After installing the Site Index Portlet and adding it to the repository, portlet was visible and could be added to the page. However, it won't show the page tree of the sub-pages.
    Are there any configuration or options to look at to make the sub-pages/page tree visible?
    Portal version is 10g
    Thank you in advance,
    Jouni

    I run again with user Portal
    got the message successfully inserted all the strings
    but i am not sure it whent right as shows following queries
    select ID,count(*) from WWNLS_STRINGS$
    WHERE ID BETWEEN 45075 AND 45098
    group BY ID
    order BY ID;
    one line only exists per ID
    and then
    select SUBSCRIBER_ID, ID, DOMAIN, NAME, LANGUAGE,
    TEXT,
    substr(TEXT_START,1,30),
    BASE_STRING_ID, substr(TEXT_STRING,1,50)
    from WWNLS_STRINGS$
    WHERE LANGUAGE in ('us', 'fr')
    AND ID BETWEEN 45075 AND 45098
    order by LANGUAGE;
    field TEXT seems incomplete and having still NLs in it.
    I run it for Language us and Language fr but got only first version back
    Should I delete those entries first before reinserting them?
    Isnt there an easier way?
    I

Maybe you are looking for

  • Is there a way to create drop caps in iBooks Author?

    Is there a way to create initial drop caps in iBooks Author?

  • Time Machine Causes Lion to Completely Crash

    To set the scene I have been working with Macs from System 7 onwards, I recently upgraded my i5 Macbook pro 13" to Lion. I decided the other day to start using Time Machine. I have set it up before for other people and usually found it to be very str

  • Need help getting my LaserJet 3390 scanner to work with my (iMac) Apple OS X version 10.9.4

    About two months ago i kept getting a message that my printer was not connected. When I got that fixed my scanner no longer worked and I haven't been able to find the settings to make it work. This is an excellent printer, in fine condition. Can some

  • How to change QWERTY to AZERTY an Apple keyboard?

    Hello everybody, Without any explanation my keyboard is now configured in QWERTY except the key on it which are in AZERTY!!! I do not understand what is happening? A few minutes ago, I didn't understand why my password don't work, finally it was beca

  • Installing iSync Palm Conduit

    Using an iMac G5 with 10.4.3 I tried to install iSyncPalm.dmg and got the message: iSync Palm Conduites cannot be installed on this computer. iSync Palm Conduit requries iSync to be insatlled first. Problem is that iSync is installed and is visible i