[TYPO3-english] Want to call core function typoLink() in my own php script

mohammad.farooq at steria.co.in mohammad.farooq at steria.co.in
Tue Dec 21 13:32:33 CET 2010


Thanks Peter,

It worked for me, my presentation purpose is solved,

Will somebody please suggest me, with effeciency of execution on mind,
which approach should I go by
1. Creating links using typolink function, which requires a huge file in
the begining,
or page and *realurl_pagepath* table joind and create friendly links,


Thanks in advance,
Farooq







                                                                           
             typo3-english-req                                             
             uest at lists.typo3.                                             
             org                                                        To 
             Sent by:                  typo3-english at lists.typo3.org       
             typo3-english-bou                                          cc 
             nces at lists.typo3.                                             
             org                                                   Subject 
                                       TYPO3-english Digest, Vol 87, Issue 
                                       37                                  
             21 December 2010                                              
             12:00 PM CET                                                  
                                                                           
                                                                           
             Please respond to                                             
             typo3-english at lis                                             
               ts.typo3.org                                                
                                                                           
                                                                           




Send TYPO3-english mailing list submissions to
		 typo3-english at lists.typo3.org

To subscribe or unsubscribe via the World Wide Web, visit
		 http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
or, via email, send a message with subject or body 'help' to
		 typo3-english-request at lists.typo3.org

You can reach the person managing the list at
		 typo3-english-owner at lists.typo3.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of TYPO3-english digest..."


Today's Topics:

   1. Re: TYPO3.org down? (Sergey Alexandrov)
   2. Want to call core function typoLink() in my own php script to
      create realurl page links (mohammad.farooq at steria.co.in)
   3. Re: Want to call core function typoLink() in my own php
      script to create realurl page links (Peter Russ)
   4. Re: looping login to back end (Philipp Gampe)
   5. how to change behavior of tt_content for just a		 part of a
      page? (Geronimo Ma. Hernandez)
   6. Re: how to change behavior of tt_content for just a part of a
      page? (Peter Russ)


----------------------------------------------------------------------

Message: 1
Date: Mon, 20 Dec 2010 23:12:19 -0500
From: Sergey Alexandrov <serg at alexandrov.us>
Subject: Re: [TYPO3-english] TYPO3.org down?
To: ab.becker at web.de, TYPO3 English <typo3-english at lists.typo3.org>
Message-ID:
		 <mailman.4939.1292904804.648.typo3-english at lists.typo3.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Things happen, you know. Maybe maintenance.

On 12/20/2010 11:07 PM, Andreas Becker wrote:
> Hi we are receiving the following error when calling typo3.org
> Database Error
>
> Cannot connect to the current database, "typo3_org"
>
>
> Andi
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


------------------------------

Message: 2
Date: Tue, 21 Dec 2010 11:10:26 +0530
From: mohammad.farooq at steria.co.in
Subject: [TYPO3-english] Want to call core function typoLink() in my
		 own php script to create realurl page links
To: typo3-english at lists.typo3.org
Message-ID:
		 <mailman.4940.1292910090.648.typo3-english at lists.typo3.org>
Content-Type: text/plain; charset=US-ASCII


Hello TYPO3 People,

To create a really different menu, I am using my own php script, which
featches database conetent from "pages" table and creates a good menu with
url links  to id of that  page.
Now that RealURL is in place, on typoscript genereated menu it is creating
fine links. but on my phpscript created menu, it is still showing the same
id=pageid;
I can create realurl links using table joins etc easily, but I want to
create links using typolink('Page Title','url parameters'); like we do when
creating extension.

Thing is that I can't access this typoLink() function from my stand alone
code which is not inside ext directory,
typolink function resides in
"typo3/sysext/cms/tslib/class.tslib_content.php", how to include and call
this function.
Can someone please tell me how can I call a typo3 core function from my own
php code, (plz. don't tell me it is a security risk to have php code in
fileadmin that I already know).



Thanks,
Farooq





Think before you print - Steria is committed to supporting a sustainable
world



This email originates from Steria*. It, and any attachments, may contain
confidential information and may be subject to copyright or other
intellectual property rights. It is only for the use of the addressee(s).
You may not copy, forward, disclose, save or otherwise use it in any way if
you are not the addressee(s) or responsible for delivery.
If you receive this email by mistake, please advise the sender and cancel
it immediately.
Steria may monitor the content of emails within its network to ensure
compliance with its policies and procedures.
Any email is susceptible to alteration and its integrity cannot be assured.
Steria shall not be liable if the message is altered, modified, falsified,
or edited.
_____________________________________________________
* Steria Limited, number 4077975;
Steria Recruitment Limited, number 1437998.
Registered in England and Wales; registered office Three Cherry Trees Lane,
Hemel Hempstead, Hertfordshire HP2 7AH


------------------------------

Message: 3
Date: Tue, 21 Dec 2010 07:18:26 +0100
From: Peter Russ <peter.russ at 4many.net>
Subject: Re: [TYPO3-english] Want to call core function typoLink() in
		 my own php script to create realurl page links
To: typo3-english at lists.typo3.org
Message-ID: <mailman.1.1292912363.7185.typo3-english at lists.typo3.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

--- Original Nachricht ---
Absender:   mohammad.farooq at steria.co.in
Datum:       21.12.2010 06:40:
> Hello TYPO3 People,
>
> To create a really different menu, I am using my own php script, which
> featches database conetent from "pages" table and creates a good menu
with
> url links  to id of that  page.
> Now that RealURL is in place, on typoscript genereated menu it is
creating
> fine links. but on my phpscript created menu, it is still showing the
same
> id=pageid;
> I can create realurl links using table joins etc easily, but I want to
> create links using typolink('Page Title','url parameters'); like we do
when
> creating extension.
>
> Thing is that I can't access this typoLink() function from my stand alone
> code which is not inside ext directory,
> typolink function resides in
> "typo3/sysext/cms/tslib/class.tslib_content.php", how to include and call
> this function.
> Can someone please tell me how can I call a typo3 core function from my
own
> php code, (plz. don't tell me it is a security risk to have php code in
> fileadmin that I already know).

Check piBase. This shows how a cObj is initiated.
BUT you create a lot of overhead for something you would get for free
when you would create a TYPO3 extension.

Peter.

--
docendo discimus

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ


------------------------------

Message: 4
Date: Tue, 21 Dec 2010 07:25:39 +0000 (UTC)
From: Philipp Gampe <typo3.list at philippgampe.info>
Subject: Re: [TYPO3-english] looping login to back end
To: typo3-english at lists.typo3.org
Message-ID: <mailman.1.1292916339.12192.typo3-english at lists.typo3.org>
Content-Type: text/plain; charset=UTF-8

Hi,

On Mon, 20 Dec 2010 15:11:44 +0100, Vanessa Liston wrote:

> The login to the backend keeps showing even though I am sure the log in
> is correct.
First try a different browser. If that does not work, please check your
session handling settings in php.ini.

I had that problem once when I messed up my session handling which made
it forgot the session directly, thus showing the login page directly
again.

> I am using version typo3_src-4.4.5
> For user do I use admin and my own password. Or do I user the DB user
> and passwords as shown on the localconfig file? Whichever combination it
> still doesn't work.
The user and password in typo3conf/localconf.php is your Database user.
It has nothing to do with your backend.

You can use the Install Tool to create a new admin user.

BTW, you can check whether you are logged in successfully by adding an
email address at admin warning address (Install Tool-->All configuration)
and setting the warning level to every time an admin user logs in.

Best regards
Phil


------------------------------

Message: 5
Date: Tue, 21 Dec 2010 09:06:30 +0100
From: "Geronimo Ma. Hernandez" <geronimo013 at gmx.com>
Subject: [TYPO3-english] how to change behavior of tt_content for just
		 a		 part of a page?
To: typo3-english at lists.typo3.org
Message-ID:
		 <mailman.4945.1292918849.648.typo3-english at lists.typo3.org>
Content-Type: text/plain;  charset="us-ascii"

Hello,

with my current design the class csc-default plays an important role. So I
need it on std-content parts, but I don't want it in the parts of the right

column.

I found out, that I can prevent the wrapping with csc-default divs by using

tt_content.stdWrap.innerWrap.cObject.default.15 >

That works in case I want to disable the wrapping on the whole page.
But I don't know, how to do it on just a small part.

I tried this TS:
------ snip ---------
page.10.subparts.ADDONS.10 = COA
tt_content.stdWrap.innerWrap.cObject.default.15 >
page.10.subparts.ADDONS.10 {
  10 = CONTENT
  10 {
    table = tt_content
    select.orderBy = sorting
    # take content of right column from about page
    select.where = colPos = 2
    select.languageField = sys_language_uid
    select.pidInList = 62
    wrap = <div id="about">|</div><!-- end of about div -->
  }

  20 = COA
  ...
------ snap ---------

Even as this TS code will be included after the TS-part for the main
content,
the main-content will be rendered without that part .15 too.

I tried to move the tt_content.stdWrap into the body of .10 but I did not
get
it.

So how can I change tt_content just for that ADDONS.10 section?

regards

Geronimo


------------------------------

Message: 6
Date: Tue, 21 Dec 2010 09:37:28 +0100
From: Peter Russ <peter.russ at 4many.net>
Subject: Re: [TYPO3-english] how to change behavior of tt_content for
		 just a part of a page?
To: typo3-english at lists.typo3.org
Message-ID: <mailman.1.1292920706.19691.typo3-english at lists.typo3.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

--- Original Nachricht ---
Absender:   Geronimo Ma. Hernandez
Datum:       21.12.2010 09:06:
> Hello,
>
> with my current design the class csc-default plays an important role. So
I
> need it on std-content parts, but I don't want it in the parts of the
right
> column.
>
> I found out, that I can prevent the wrapping with csc-default divs by
using
> tt_content.stdWrap.innerWrap.cObject.default.15 >
>
> That works in case I want to disable the wrapping on the whole page.
> But I don't know, how to do it on just a small part.
>
> I tried this TS:
> ------ snip ---------
> page.10.subparts.ADDONS.10 = COA
> tt_content.stdWrap.innerWrap.cObject.default.15 >
> page.10.subparts.ADDONS.10 {
>   10 = CONTENT
>   10 {
>     table = tt_content
>     select.orderBy = sorting
>     # take content of right column from about page
>     select.where = colPos = 2
>     select.languageField = sys_language_uid
>     select.pidInList = 62
>     wrap = <div id="about">|</div><!-- end of about div -->
>   }
>
>   20 = COA
>   ...
> ------ snap ---------
>
> Even as this TS code will be included after the TS-part for the main
content,
> the main-content will be rendered without that part .15 too.
>
> I tried to move the tt_content.stdWrap into the body of .10 but I did not
get
> it.
>
> So how can I change tt_content just for that ADDONS.10 section?
>

You should use renderObj to define the rendering to your need. Check the
CONTENT object for more information on that

Peter


--
docendo discimus

_____________________________
uon GbR
http://www.uon.li
http://www.xing.com/profile/Peter_Russ


------------------------------

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

End of TYPO3-english Digest, Vol 87, Issue 37
*********************************************



Think before you print - Steria is committed to supporting a sustainable
world



This email originates from Steria*. It, and any attachments, may contain confidential information and may be subject to copyright or other intellectual property rights. It is only for the use of the addressee(s). You may not copy, forward, disclose, save or otherwise use it in any way if you are not the addressee(s) or responsible for delivery.
If you receive this email by mistake, please advise the sender and cancel it immediately.
Steria may monitor the content of emails within its network to ensure compliance with its policies and procedures.
Any email is susceptible to alteration and its integrity cannot be assured. Steria shall not be liable if the message is altered, modified, falsified, or edited.
_____________________________________________________
* Steria Limited, number 4077975;
Steria Recruitment Limited, number 1437998.
Registered in England and Wales; registered office Three Cherry Trees Lane, Hemel Hempstead, Hertfordshire HP2 7AH


More information about the TYPO3-english mailing list