Welcome, Guest. Please login or register.
Did you miss your activation email?
Oct. 12, 2008, 05:33:49 AM
47679 Posts in 10457 Topics by 5342 Members
Latest Member: vihuarar
News: Class documentation is handy to learn about component properties, events and methods.
 
The PRADO Community » Prado v3.x » General Discussion » Change .page to .html and work easy with DreamWeaver. « previous next »
Pages: [1] Print
Author Topic: Change .page to .html and work easy with DreamWeaver.  (Read 1475 times)
yois
Junior Member
**

Karma: 0
Offline Offline

Posts: 21


SysDevWorld


View Profile WWW
« on: Oct. 25, 2007, 01:43:24 PM »

Wen I am editing .page with dreamweaver in each PC I have to configure everytime to adjust and design the .page.
I've done a little research and I realize a change to the constant PAGE_FILE_EXT.

These constant are in:
pradolite.php  line  7813 and TPageService line 93. In both files I've done the following changes:

Code:
/*const PAGE_FILE_EXT='.page';*/
const PAGE_FILE_EXT='.html';

I don't know what kind of problem I'll have, but right now is working ( PRADO Framework 3.1 v.).

Please let know if somebody have problem with this.
 and if not, then enjoy it.




 
Logged

yois
Kabayan
Platinum Member
****

Karma: 15
Offline Offline

Posts: 784


Save me...please


View Profile WWW
« Reply #1 on: Oct. 27, 2007, 02:29:30 PM »

That's a good hack yois.
We have to compare the size (line) on Pradolite.php in every new PRADO releases, the size may not be always the same.
Logged
okhayat
Junior Member
**

Karma: 1
Offline Offline

Posts: 39


By teaching you learn!


View Profile
« Reply #2 on: Dec. 07, 2007, 12:18:32 AM »

I believe the better solution is to customize DreamWeaver instead of Prado.
You just need to do two steps:
1. Edit the file \Program Files\Macromedia\Dreamweaver 8\Configuration\DocumentTypes\MMDocumentTypes.xml:Line 3
Code:
<documenttype id="HTML" internaltype="HTML"
winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml"
macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi"
file="Default.html"
writebyteordermark="false">
by adding page to the winfileextension and macfileextension so it becomes:
Code:
<documenttype id="HTML" internaltype="HTML"
winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml,page"
macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi,page"
file="Default.html"
writebyteordermark="false">
2. In DreamWeaver goto Edit -> Preferences -> File Types/Editors and add .page to the list of extensions on the left then choose an editor by clicking on the + sign on the right and browsing to the Dreamweaver.exe and select it.
Once you're done with this, Dreamweaver will treat your .page files like HTML pages and give you code completion for PRADO tags.
« Last Edit: Dec. 07, 2007, 12:21:03 AM by okhayat » Logged
Kabayan
Platinum Member
****

Karma: 15
Offline Offline

Posts: 784


Save me...please


View Profile WWW
« Reply #3 on: Dec. 07, 2007, 04:11:55 AM »

Agree, the goal here is to have DW works better with Prado not custimizing Prado itself, this is just another way of changing DW configuration like you suggestion or somewhere posted already in this forum. Anyway, both will help a lot for DW users.
Logged
jojozekil
Newbie
*

Karma: 0
Offline Offline

Posts: 2


View Profile
« Reply #4 on: Mar. 12, 2008, 11:40:32 PM »

I believe the better solution is to customize DreamWeaver instead of Prado.
...
Thank you so much!
Logged
jake
Platinum Member
****

Karma: 13
Offline Offline

Posts: 888



View Profile
« Reply #5 on: Mar. 13, 2008, 07:33:20 AM »

Instead of actually modifying the Prado code isn't there a setting of what extension the Page service will look for when it comes to pages and templates? I think I've seen it somewhere but I could be wrong, could just be that constant?

Have you ever thought about just extending that class and overwritting that constant so its what you want?

Btw: Eclipse > Dreamweaver
Logged
mikl
PRADO v3.x Developer
Platinum Member
*****

Karma: 51
Offline Offline

Posts: 733



View Profile
« Reply #6 on: Mar. 13, 2008, 09:37:29 AM »

I would never change prado files. You'll end up in upgrade hell if you do so. You could instead open a ticket to get an additional configuration parameter for TPageService like this:

Code:
<services>
   <service id="page" class="TPageService" PageExtension=".html" />
</services>

All there is to do, is to write simple getter/setter for this and replace the constant in TPageService.php.
Logged
cj5
Newbie
*

Karma: 0
Offline Offline

Posts: 2


View Profile
« Reply #7 on: Jun. 12, 2008, 04:01:09 PM »

2. In DreamWeaver goto Edit -> Preferences -> File Types/Editors and add .page to the list of extensions on the left then choose an editor by clicking on the + sign on the right and browsing to the Dreamweaver.exe and select it.

I don't know how you got this to work, because when I go to add an external editor I get a warning from Dreamweaver, "You cannot use Dreamweaver as an external editor. Please choose a different application." It's kinda of stupid to offer an extension for Dreamweaver, and not have it set it up to allow the opening of .page files. Does anyone know how to get this to work?
Logged
newleo
Senior Member
***

Karma: 3
Offline Offline

Posts: 110


I hate coding on mondays


View Profile WWW
« Reply #8 on: Jun. 17, 2008, 05:13:53 PM »

Hi

You might want to transfer this topic to Tips, Snippets and Tutorialshttp://www.pradosoft.com/forum/index.php/board,27.0.html

Greetings
Logged

Carpe diem

e-strategica Solutions Provider
http://www.e-strategica.com
Pages: [1] Print 
« previous next »
Jump to: