MenuCoranto Docs
Coranto LinksPmWiki Home |
Display a "NEW" indicator next to a news item2005-02-16 23:46 GMT by faithless On this page... (hide) Step #1: javascript codeInsert this javascript code in the header section (<head></head>), of the page where you want your news to appear. <script language="javascript"> Step #2: Modify News StyleInsert this at the top of your news style. <PerlCode> Step #3: More style modificationsInsert this where you want the "NEW" text to appear in your news style. <script language="javascript"> Replace NEW text with ImageTo use an image instead of the red "NEW" text example shown here, change the document.write line to: document.write('<img src="To use with Maginot Static PageFor use with Maginot Static Pages and headline profiles, you would have to modify each step a bit. Ignore this portion if you do not use Maginot Static Pages. Complete steps 1 and 2 as indicated for each Maginot Static Pages profile and its "linked" headlines profile you want to have the "NEW" indicator. In the headline profile, change the code for step 3 to: <script language="javascript"> Then, in the "linked" Maginot Static Pages profile, change the code in Step 3 to: <script language="javascript"> This way, the news will only be marked as "read" only if your visitor clicks and view the full Maginot Static Page news. Step #4: Fulll rebuildNow, do a Full Rebuild and you're done! |