typo3

WinHTTP VBA subsequent request cannot use the previous login credentials?

荒凉一梦 提交于 2019-11-27 19:03:42
问题 I'm using WinHTTP in Access 2007 VBA to fetch some list of items requiring a cookie login credential account . First I login through https://www.example.com/login.php with this: Dim strCookie As String, strResponse As String, _ strUrl As String ' Dim xobj As Object ' Set xobj = New WinHttp.WinHttpRequest ' strUrl = "https://www.example.com/login.php" xobj.Open "POST", strUrl, False xobj.SetRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" xobj.SetRequestHeader

TYPO3 - Redirecting to login page when user is not logged in

独自空忆成欢 提交于 2019-11-27 18:07:52
问题 I have some restricted pages built in Typo3. The problem is I cannot automatically redirect user from these pages to login page. How do I do that? I desperately need it and cannot find a solution despite of the fact I have spent most of the day working on it :( Any help will be much appreciated. 回答1: That should work fine: # Restricted area starts at pid 123. # Check if user is logged in: [PIDinRootline = 123] && [usergroup = *] # do something [else] page.config > page.config

Remove attributes “height” and “width” of the image tag

坚强是说给别人听的谎言 提交于 2019-11-27 16:24:55
问题 In order to create a responsive website with Typo3 and Twitter Bootstrap, I would like to remove the height and width attributs of images Here's how images are generated in Frontend via content element of type text & image and image <img src="typo3temp/pics/a625b79f89.jpg" width="300" height="226" alt="blabla" /> I would like to remove the dimension attributes and get this: <img src="typo3temp/pics/a625b79f89.jpg" alt="blaba" /> Can anyone help me ? 回答1: It's not possible to remove the height

In an extbase extension, how to access the persistence layer from a scheduler task?

醉酒当歌 提交于 2019-11-27 14:33:21
What sounds a bit academic in the title is actually quite straightforward: I have set up a TYPO3 6.1 extbase extension that I've equipped with a scheduler task. The task is supposed to import a CSV file and save it into the extension's database fields. But how do I tell the scheduler task to use the extension's model etc. and save the received data into the persistence layer? I've seen this answer to a similar question: Execute repository functions in scheduler task and I think it points the right way, but I think need a full example to start understanding how the dependency injection works.

Extbase - get created sql from query

和自甴很熟 提交于 2019-11-27 09:29:16
i want to get some database tables from my typo3 extensions. The Extension is based on extbase. The query always returns nothing but the data exists I've tried this: $query = $this->createQuery(); $query->statement('SELECT * FROM `my_table` WHERE field = ? ORDER BY date DESC LIMIT 1', array($condition)); $results = $query->execute(); and this: $query = $this->createQuery(); $query->matching($query->equals('field', $condition)); $query->setOrderings(array('date' => Tx_Extbase_Persistence_QueryInterface::ORDER_DESCENDING)); $query->setLimit(1); $results = $query->execute(); both returns null as

How to quickly create custom content elements in TYPO3 6.x

空扰寡人 提交于 2019-11-27 05:27:32
问题 In TYPO3 6.x, what is an easy way to quickly create custom content elements? A typical example (Maybe for a collection of testimonials): In the backend (with adequate labels): An image An input field A textarea When rendering: Image resized to xy input wrapped in h2 textarea passed through parseFunc and wrapped in more markup Ideally, these would be available in the page module as cType, but at least in the list module. And use fluid templates. My questions: From another CMS I am used to

TYPO3 Fluid complex if conditions

穿精又带淫゛_ 提交于 2019-11-27 02:15:02
问题 I am trying to write the following if condition in fluid but it is not working as I would hope. Condition As part of a for loop I want to check if the item is the first one or 4th, 8th etc I would have thought the following would work but it display the code for every iteration. <f:if condition="{logoIterator.isFirst} || {logoIterator.cycle % 4} == 0"> I have managed to get it working with a nested if but it just feels wrong having the same section of code twice and also having the cycle

TYPO3: Hook after creating or editing page

廉价感情. 提交于 2019-11-26 20:00:47
问题 I'm searching for a hook which is called after page creation or changes on pages like " hide page in nav ", " deactivate page " or " move/delete page " Does someone know of one? Thanks! 回答1: These Hooks are located in t3lib/class.t3lib_tcemain.php The following are just some of those: processDatamap_preProcessFieldArray processDatamap_postProcessFieldArray hook_processDatamap_afterDatabaseOperations processDatamap_afterAllOperations In your case, i think you could use " processDatamap

In an extbase extension, how to access the persistence layer from a scheduler task?

删除回忆录丶 提交于 2019-11-26 16:48:37
问题 What sounds a bit academic in the title is actually quite straightforward: I have set up a TYPO3 6.1 extbase extension that I've equipped with a scheduler task. The task is supposed to import a CSV file and save it into the extension's database fields. But how do I tell the scheduler task to use the extension's model etc. and save the received data into the persistence layer? I've seen this answer to a similar question: Execute repository functions in scheduler task and I think it points the