إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 08-12-2010, 04:50 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,669
عدد الـنقاط :3341
 تقييم المستوى : 2140

Hello,

Is it possible to change the page title for CMS PHP evaluation page in the evaluation code somehow? For example:

Code:
if (...)
{
$output = "...";
[?page title?] = '...'
}
else
{
$output = "...";
[?page title?] = '...'
}
What should I use instead of [?page title?] in order to set both title and html_title dynamically?

I was not able to find a solution for this simple issue during more than 5 hours. OOP implementation in PHP is complete mess and working with it is a pure hell. Please help me!

Why do I need that: I would like the CMS article page title and content change depending on GET request parameters.

I started by setting $this->html_title and $this->title in the evaluation code; for sure this did not provide any results.
As a workaround, I tried to override getTitle and getHtmlTitle methods in vBCms_Item_Content_PhpEval class. I found that vBCms_Controller_Content class gets CMS article title (page title) from gvBCms_Item_Content_PhpEval instance, and gets HTML title from its parent class (different instance!) - vBCms_Item_Content class. Such way, vBCms_Controller_Content creates two instances of the same CMS article class - parent and derived class instances, populates them both and takes some properties from one, and other properties from another. I don't have an idea about such OOP patterns.

Please help.
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 02:36 AM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML