Help to create a 'News' page please!
I want to create a News Page, which will display only lines 5 or 6 first in an article and is followed by a link "read more" and directs the reader to another page.
So far, I created a page with a form that allows the administrator to easily add items to the database. And I created the News Page using a table and repeating recordset.
What I don't know is how to display ONLY the first lines of the article without having to make another field in my database which contains only the first paragraph of article. Any ideas?
I'm trying to do this as a user friendly to the person article inputing so they do not need to divide the article, or do too much editing before sticking in the original form.
Please note: I am new to web design and I have very limited knowledge of the code. I do this throughout the design view in Dreamweaver CS3. And I'm using php.
Hi you would insert it as follows: -.
$query_rsNews = "SELECT SUBSTR ('Article', 0.10), 'Date', title OF news";
The SUBSTR tells your database to retrieve only the 10 fist words in the table to section of your database, (change the 10 number of words you need).
PZ
Tags: Dreamweaver
Similar Questions
-
Help me, create a new page of the current page TabbedPane
I want when I touch the tab on a new page. Here is my source:
hand. QML
import bb.cascades 1.0
TabbedPane {}
showTabsOnActionBar: false
Tab {//First tab
Text located with the dynamic translation and locale update support
Title: qsTr ("Blackberry") + Retranslate.onLocaleOrLanguageChanged
imageSource: "asset:///pic/ic_bbm.png."
ActionBar.placement: ActionBarPlacement.InOverflow
{Page}
actions:]
{ActionItem}
ID: action2
Title: qsTr ("About") + Retranslate.onLocaleOrLanguageChanged
imageSource: "asset:///pic/ic_info.png."
ActionBar.placement: ActionBarPlacement.InOverflow
}
]
title bar: title {} bar
Title: "a tab.
}
{Of container
{Label
text: qsTr ("first tab") + Retranslate.onLocaleOrLanguageChanged
}
}
}
} //End of the first tab
Tab {tab //Second
Title: qsTr ("Search") + Retranslate.onLocaleOrLanguageChanged
imageSource: "asset:///pic/ic_search.png."
ActionBar.placement: ActionBarPlacement.InOverflow
{Page}
title bar: title {} bar
Title: 'two Tab.
}
{Of container
{Label
text: qsTr ("second tab") + Retranslate.onLocaleOrLanguageChanged
}
}
}
} //End of the second tab
Tab {tab //Three
Title: qsTr ("Share") + Retranslate.onLocaleOrLanguageChanged
imageSource: "asset:///pic/ic_share.png."
ActionBar.placement: ActionBarPlacement.InOverflow
{Page}
title bar: title {} bar
Title: 'Tab three.
}
{Of container
{Label
text: qsTr ("second tab") + Retranslate.onLocaleOrLanguageChanged
}
}
}
} //End of three tab
}about. QML
import bb.cascades 1.0
{Page}
anyone ranging from property;
{Of container
verticalAlignment: VerticalAlignment.Center
horizontalAlignment: P
topPadding: 50
background: Color.create ("#000000")
ImageView {}
horizontalAlignment: P
imageSource: "asset:///pic/ducdaubb.jpg."
preferredWidth: 500
preferredHeight: 500
}
{Label
textStyle.base: SystemDefaults.TextStyles.BigText
textStyle.fontWeight: FontWeight.Normal
text: "Radio Indonesia."
horizontalAlignment: P
textStyle.color: Color.White
}
{Label
textStyle.base: SystemDefaults.TextStyles.BigText
horizontalAlignment: P
textStyle.fontWeight: FontWeight.Default
text: 'Version 20141.
textStyle.color: Color.White
textStyle.fontSize: FontSize.XLarge
}
{Label
textStyle.base: SystemDefaults.TextStyles.BodyText
horizontalAlignment: P
textStyle.fontWeight: FontWeight.Normal
textStyle.fontSize: FontSize.Large
text: "Copyright 2014-2015.
textStyle.color: Color.DarkGray
}
{Label
textStyle.base: SystemDefaults.TextStyles.BodyText
horizontalAlignment: P
textStyle.fontSize: FontSize.Large
text: "Devoloper by 1Pro.
textStyle.color: Color.LightGray
}
{Label
textStyle.base: SystemDefaults.TextStyles.BigText
horizontalAlignment: P
textStyle.fontSize: FontSize.XLarge
textStyle.fontWeight: FontWeight.Normal
text: qsTr ("http://radio.com.id")
textStyle.color: Color.create ("#087099")
Multiline: false
}
} / / Container
} / / PageThank you
You need NavigationPane if you want to push new page (average).
For example:
Tab { //First tab title: qsTr("Blackberry") + Retranslate.onLocaleOrLanguageChanged imageSource: "asset:///pic/ic_bbm.png" ActionBar.placement: ActionBarPlacement.InOverflow NavigationPane{ Page { actions: [ ActionItem { id: action2 title: qsTr("About") + Retranslate.onLocaleOrLanguageChanged imageSource: "asset:///pic/ic_info.png" ActionBar.placement: ActionBarPlacement.InOverflow } ] ...................
then in your page add ComponentDefinition to attachedObjects of the page
YourPage{ attachedObjects: [ ComponentDefinition { id: aboutPage source: "About.qml" } ] }
and finally, to push the new on the page.
ActionItem{ title: qsTr("About") onTriggered:{ activePane.push(aboutPage.createObject()) } }
It may be useful
For more information, see this
https://developer.BlackBerry.com/native/documentation/Cascades/best_practices/dynamic_qml/
-
When I create a new page via 'Copy of the current page', the new page always gets an additional line of code. Contribute CS5 adds a paragraph that pushes my browsing down in the content area of my site. Can someone please help me get to stop this?
<!--
Code on the original page:
< body >
< div id = "container" >
< div id = "header" >
< div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >
< div class = "navigation" >
Code on the new page:
< body >
< div id = "container" >
< div id = "header" >
< div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >
< style p = "margin-top: 0;" margin-bottom: 0; ' > < / p >
< div class = "navigation" >
->If you are going to administer websites > users and roles > choose > change role settings > Editing > paragraph spacing, you put a line or two lines?
If a line, select the two lines.
-
The updated Photoshop "freezes" when I click on open or create a new page.
The updated Photoshop "freezes" when I click on open or create a new page. I have to wait a minute or two and then work. Everything works normally. When I press file / open - new 'freeze '. I did the last update.
Hi damijant,
Suggest make you in Photoshop preferences > General > uncheck "Show workspace start when no documents are open" > restart Photoshop and check again.
Let us know if that helps.
Kind regards
~ Mohit
-
I don't have a blank page option when you try to create a new page
I don't have a blank page option when you try to create a new page, what should I do?
When questions about the user interface, it helps if you say that you are using which version of Dreamweaver. It sounds as if you are using the latest version of Dreamweaver CC, but try to follow instructions written for an older version. This is the new Document dialog box in Dreamweaver CC 2015:
New Document has replaced the White Page in older versions. To get a blank page, select New Document in the left column, HTML as a Type of Document and there is no tab for framework.
-
Why dreamweaver wants to replace my existing css file when you create a new page
I created a Web site and I can not dreamweaver to accept my existing css file when I create a new page in the same Web site. I click on file, create new page, I select page fluid and in the lower right, click on the link to an existing css file and click ok, but dreamweaver tells me so my css file does not exist and wants to replace my existing css file? What's happening?
Thank you guys for this report we
It's a little surprising that it is the way it is for a while now. Rather than create a fg with the attached css html, DW invites you to create a new css / replace the existing one. Why?
The part confusing here is that the "css Attach leader"offers two options.
1. fix like a normal CSS
2. attach like a css FG
If you check the preference to "Join as fluid grid CSS" (see attachment) you should not see this question.
that is, unless you attach the css like a css FG, DW treats like any other css and waiting for you to bind one another css FG
However, I'm too confused at first until I realized the difference. Hope this helps
And thank you for bringing this to our notice
.. Henin :)
-
How to create a new page when the user activates a box?
I guess this would be a checkbox. I am looking for a way to create a user, select Create a new page when the user runs out of space in the text box that is given. So if possible is a way to create a new page with a text box continuous when the user selects create it a new page check box. Thank you.
Yes, if you create a new page in the designer of the LC (page 2) and deselect the number of minutes, so that when the form is displayed at the start, it is not an instance of the page. While the click event of the button would be:
_page2.addInstance(true);
You can design page 2 with which opposes always desired.
Hope that helps,
Niall
-
Hallo,
that is the difference between choosing as a Type of Document "Facelets" and choosing "JSP XML" when you create a new page?
Which is the best choiche and why? And is it possible to convert a page from one type to another?
Thank you
Federico
Hi Federico
JSPX both Faceletes are equal to the feature and after Jdev Release11gR2, both are supported in the ADF
Facelets is deemed be better performance because it is more tight integrated with life cycle JSf and does not need to be compiled before running
The future speaks Facelets (specification of JSF) and if start you a new project in development with JDeveloper 11 g R2 then we recommend you use Facelets for this reason
See this good discussion -Diff b\w JSF and JSPX
Thank you
-
Need help! How to create a new page?
Hello
I'm in the middle of creating a business presentation and I need to chain it all carefully in adobe reader8, the problem is, I have no idea how to create new pages on this subject, and can therefore show coverage of said presentation. Help, please?
Not possible with Adobe Reader.
-
Need help to create a new Xbox account
I deleted my Xbox Live account, a long time ago and I want to create a new. My old Xbox Live account is associated to my the Microsoft Account. But when I want to create an Xbox Live account, it says I have one using my that already have Microsoft Account. I'm sure I deleted my Xbox Live account and when I go on my Xbox Live account in the Internet, it says this, "Uh oh... that shouldn't happen." It seems that you have found a bug in the system. Please try again later. "I need help, I really want to create a new Xbox Live account using my course Microsoft Account. Thank you.
Hello
Your Question is beyond the scope of this community.
I suggest that repost you in the correct forum.
'Home'
"Xbox forums.
http://forums.Xbox.com/xbox_forums/general_discussion/f/3817.aspx
"Xbox Forums directory.
http://www.Xbox.com/en-us/forums
See you soon.
-
I need help to create a new partition of the drive c. main on my laptop
OK, I already tried to create a new partition and it did, but the new partition I created has become "unallocated" I don't know why, I have read the information online and they say that you cannot remove a player from the "unallocated" partition, so I am trying to create a new partition on this drive "unallocated". when its almost finished, I get warning all the time
the operation you selected will convert the disk from basic to dynamic disk selected s. If you want to convert the disks to dynamic disks, you will not be able to boot operating systems from any volumes on the s drive (except the current boot volume). Are you sure you want to continue?
I want to create a new partition on this disc, please help
When I click Yes, it brings an error message saying, the 'dynamic disks are not supported on this operating system.
I use Windows Vista Home premium
http://www.Vistax64.com/tutorials/95398-disk-management-shrink-partition.html
http://www.Vistax64.com/tutorials/95418-disk-management-delete-extend.html
Good info on above links.
Read the related links section, also.
Unallocated space is what it says it is: nothing.
Normally, you right click on your existing drive > extend the Volume > makes a great.
Or follow the instructions at the link above to make a second Partition to unallocated space...
See you soon... Mick Murphy - Microsoft partner
-
Hi all!
I create a script to automatically generate a catalogue of photos; the idea is to prepare a master document with a text block in the master full of self flowing, then insert images with their legend by the script, let the system automatically creates the following pages when necessary, by a single stream of text.
My catalog is divided into sections, each represented by a different master spread; So I know what page I work when the script put there a picture just to link the current page in the master spread appropriate.
To simplify what I got most of my script here, using text instead of images:
/ * load a master document, only containing a block of empty text in the master spread, connected to the main text stream * /
var doc = app.open (new File("~/Desktop/mySampleDoc.indd"));
/ * I'm working on the story, thinking that every time that the textframe of first page will be full, we will create another block of text on the next page (automatically created) * /
var history = doc.pages [0] .textFrames [0] .parentStory;
/ * now, I put a few lines of text in history, pending the creation of a new on the first page will be complete * /
for (var i = 0; i < 100; i ++) {}
/ * This is the following line: * /.
.silence story.insertionPoints [-1] = "This is line n." + i + "\r";
/ * here, I want to know what page is the line just created (the error is generated here just in the creation of the new page + block of text) */
Thispage = story.insertionPoints [-1] .parentTextFrames [0].parentPage.documentOffset;
/ * and now I print the page number * /.
story.insertionPoints.item(-1).contents = "current page:"+ thispage + "\r"; ".
}
The big problem is: when the first block of text is full and overflow is generated, a new page with a new block of text from the main text flow (as the master spread) is generated. but it seems my script requests the page number before the new page with the new text block is born and an error is given.
It seems that the script goes too fast regarding the creation of the new page.
If I remove the line thispage = story.insertionPoints [-1] .parentTextFrames [0].parentPage.documentOffset; everything is ok.
I tried to introduce a delay up to 3 seconds with no effect.
I tried also to view or zoom in the request of page number, thought new page to force the system to wait for the page is truly born, also without effect (by the way, I wasn't able to view the page in adding the script of the text!).
Can someone help me?
A big thank you to everyone
Roberto
Have you tried using myDoc.recompose () before the application for compensation?
-
How to create a new page with the existing provision of the one that I already created?
Well, I'm very new to DreamWeaver, just an info. I was ordered to develop a site for a company. There will be as a total of 10 pages on the site. I created the home page, and I'm now trying to make the other. But I don't know how I can take the basic layout, I created in the homepage so I can add information for other pages later. I tried to save as a template, but I had to create editable regions and those got in the way. I even tried to copy the code from the original, but then the Spry menus will not work correctly. I hope I passed my problem properly. Any help will be more useful.
Thank you.
- Open index.html
- File > save as > page2.html
- Repeat for other pages of the site...
- Change content as needed.
Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
-
I'm new to the photo shop and I need help to create a new photo for a light effect
The direction towards the tutorial I am subsequently says "create a new folder name "light effect". Change its colorDodge blending mode and move the ellipse that you created in this folder. »
I have NO idea what the indications or the way to follow. Can someone please explain to me how to create a new folder, how do I change the blending mode to Color Dodge this issue and how to move an ellipse that I created for this folder. I'm new, so step by step instructions would be more then appreciated. Thank you!
http://Abduzeedo.com/amazing-Photoshop-light-effect-10-steps
Hello
The tutorial refers to work in the layers panel. Choose window > layers.
- A new folder is possible in the layers panel by clicking on the folder icon at the base of the Panel or by selecting "New group" of the fly of the layer menu panel.
- The folder can be renamed by double clicking on the name of the folder and enter the new name
- The blending mode is changed at the top of the Panel. By default, it reads 'Normal' or as folder by default, it reads 'Pass Through'. Click here to change to Color Dodge
- To move the ellipse layer folder drag the layer (in the layer panel) on the folder you created
Hope that helps.
Paul.
-
How to create a new page to an existing page?
Hello
I know that there is a way to create a new Web page for my site, using the same layout from the other pages. What is the workflow for the same presentation? With copy and paste the code, I might add.
Thank you!
Jbug
You can open an existing page and select file > save as to make an exact duplicate, save under a different name and then add the new content.
If you work with DW templates, a .dwt file will exist in a models folder in your site. You choose file > New > Page from the model and choose the .dwt file make a child page.
Maybe you are looking for
-
I just bought for my Mac pwSafe and pwSafe 2 for my iPhone. I know I put the cart before the horse, but now I need to ask if it's safe and well. You see, I'm not very good with computers and I had some trouble it get up and running and also trouble w
-
Three fingers slip missing?
Updated for Sierra last night. Apart from duty uncheck and recheck some of the scrolling options in trackpad preferences, everything seems to have gone smoothly. With one exception - three fingers slip is no longer works. I had gotten really used to
-
Recently, after a message received on the laptop advise it be returned because of a problem with the fan, I sent my laptop to Toshiba UK, it was packed in the same packaging, he came and was in perfect condition when it was sent. Now, after days of w
-
Error message keeps appearing: 6.0.2900.5512
I received this error for about three weeks. Cannot remove it.
-
Is this not the right part. the update of the GIS 4240 IPS license? CON-SUSA-IPS4240S I can only find this part number in the ordering tool: CON-SUI-IPS4240, which also has a SMARTNet Support? What is do we need just to have updates of GIS? Thank yo