[MODULE] phundament 2 A content management module for Yii
#161
Posted 25 May 2010 - 09:03 AM
Maybe you can post a .zip of your widget?
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#163
Posted 25 May 2010 - 09:29 AM
The advantage would be, that you can use a custom _form.php view there.
Within this view make sure you surround every input field, which value should be collected with a <div class="classProps">.
Another solution would be to use some more input fields for your youtube widget.
If your widget is _not_ a P2BaseWidget phundament reads all public variables and renders simple text fields for them (limited length).
So you may use i.e. these public properties in your widget: youtubeId, width, height and generate the complete HTML within your widget.
Does this help?
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#164
Posted 25 May 2010 - 11:28 AM
schmunk, on 25 May 2010 - 09:29 AM, said:
The advantage would be, that you can use a custom _form.php view there.
Within this view make sure you surround every input field, which value should be collected with a <div class="classProps">.
Another solution would be to use some more input fields for your youtube widget.
If your widget is _not_ a P2BaseWidget phundament reads all public variables and renders simple text fields for them (limited length).
So you may use i.e. these public properties in your widget: youtubeId, width, height and generate the complete HTML within your widget.
Does this help?
Yep, I used the second approach (in previous posts there is a sample widget code)
(just not very convenient to copy-paste parts of generated code by Youtube).
So it should be modified later on
[edit]
OT: Is it possible that admin tool bar would be in top of flash, swf, and other video screen objects?
Best regards,
CoLT
This post has been edited by CoLT: 25 May 2010 - 11:31 AM
#165
Posted 25 May 2010 - 06:38 PM
Quote
OT: Is it possible that admin tool bar would be in top of flash, swf, and other video screen objects?
Should be, I did it here: http://www.merida-bikes.com/de_de/
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#166
Posted 26 May 2010 - 02:35 AM
schmunk, on 25 May 2010 - 06:38 PM, said:
This is it
Thanks!
CoLT
#167
Posted 26 May 2010 - 03:50 AM
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#168
Posted 30 May 2010 - 05:54 AM
I noticed some strange behaviour with en_us message file @ Phundament.
It just ignores this file and its place holders to translate e.g.
'__USER_PROBLEMS__' => 'Still problems?! Please contact us by or by our <a href="{contactUrl}">contact page</a> or by <a href="mailto:{email}">e-mail</a>.',
or simple 'rememberMe' => 'Remember me next time',
Where the problem could be?
Greetings,
CoLT
#169
Posted 21 September 2010 - 12:01 AM
CoLT, on 30 May 2010 - 05:54 AM, said:
I noticed some strange behaviour with en_us message file @ Phundament.
It just ignores this file and its place holders to translate e.g.
'__USER_PROBLEMS__' => 'Still problems?! Please contact us by or by our <a href="{contactUrl}">contact page</a> or by <a href="mailto:{email}">e-mail</a>.',
or simple 'rememberMe' => 'Remember me next time',
Where the problem could be?
Greetings,
CoLT
You can change it in "modules/p2/extensions/langhandler/ELangHandler.php"
I set source language to some other language example
Yii::app()->sourceLanguage = 'man';
What is this mean? That my source code is written in man language. So it forced to look up other language like in phundament is en_us.
Greetings,
R.K.
#170
Posted 21 September 2010 - 04:14 AM
R.K., on 21 September 2010 - 12:01 AM, said:
Yeah, exactly.
I sometimes set, i.e. sourceLanguage to null, because I work with translation placeholders like "__MyMessage__" which then also can be translated to en_us.
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#171
Posted 30 September 2010 - 04:21 AM
One issue regarding Phundament Cell management http://code.google.c...es/detail?id=49
It could be more intuitive to manage Cells, e.g. when creating P2 with sample data, then adding more pages, html, and then removing unnecessary pages, html. Cells are not removed, therefore its hard to track down which one belongs where.
Eg. Request Param in certain cases are Page ID (name could be stated).
Eg. If its html widget, ID refers to HTML content (beginning could be stated)
In other words, Usability is most important to make this CMS up and going stable.
Greetings,
CoLT
#172
Posted 07 October 2010 - 07:25 AM
thanks for your idea. Yeah, should be implemented
Best regards,
Tobias
PS: http://code.google.c...es/detail?id=50
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari

Help















