-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation missing: "colPos" for flux:grid.column – which value? #1599
Comments
the colPos value can be from 0-99 |
Thank you. But which of 0-99 to choose? The value does have a meaning, doesn’t it?… |
@TostaTosta i have here the same problem migrating flux to current version. I have nested content elements and i have no clue what i should do? Should i add the attribute colPos with the 18181 stored in database? I don't know... the first try running the flux update script in extension manager was not successfull 😞 |
Did you rename your FCEs from You could do something like this: UPDATE tt_content
SET CType = LOWER(
REPLACE(CType, 'flux_', yourextname_')
)
WHERE CType LIKE 'flux_%'; |
@chriskrj Thx for your feedback. Yes i renamed the CTypes in database (mentioned here FluidTYPO3/fluidcontent#424). And after a check it seems that the update script did its job BUT where i am not sure is how to handle flux colPos where is now a mandatory field. |
In your Flux Forms you should only use numbers from 1 to 99 everything above is deprecated. so if you have 2 columns just use colPos=1 and colPos=2 for you columns. Flux generates his own colPos value to the database. Id of the element + 0 + colPos Value i think. colPos Value=18181 isn't used anymore. <flux:grid>
<flux:grid.row>
<flux:grid.column label="Col 1" name="col1" colPos="1">
</flux:grid.column>
<flux:grid.column label="Col 2" name="col2" colPos="2">
</flux:grid.column>
</flux:grid.row>
</flux:grid> |
@chriskrj i have changed my page templates using colPos from 1 to 99 so far so good. But like i said i have for example a content element as an two column wrapper using flux:grid.column. Before colPos was optional and now it is mandatory. Before colPos was 18181 (internal?). See my colPos from tt_content. flux generates new colPos numbers? I am not shure for what? I am confused...
|
@samowitsch i actually think, that the Flux update script doesnt worked out well in your case. Maybe you have a older DB Backup so u can try these update steps again?
One more question. Do you use Fluidpages? |
@samowitsch The formula for calculating colPos values is The new colPos values can then be reversed programmatically: $originalLocalColPosValue = $record['colPos'] % 100;
$parentRecordUid = (int)floor($record['colPos'] / 100); This is why your colPos values look the way they do - and why Migration scriptIn order for the migration script to work, the following must be true:
Additional info about migrating can be found in #1542, including SQL queries that can fix your colPos values if for some reason you can't use the EM upgrade script to do it. |
@chriskrj yes, i use also fluidpages and fluidcontent_core (but that is another story 😢) |
If you still have that in the database after correcting your templates and migrating through EM, then that indicates one or more CTypes are not correct and/or do not resolve the right template file. If the file cannot be resolved, the Grid is not read and no records get migrated. |
Just a noob question: where does the limit 99 come from? From TYPO3 core? |
The limit is a consequence of the multiplier This limit has to be imposed because a value of for example |
Closing due to inactivity - I assume you found answers to your questions and solutions to your problem! |
I'm also running into this migration from TYPO3 v7 (flux/fluidcontent/fluidpages) -> TYPO3 v8 with to flux+fluidpages (migrating fluidcontent to flux integration). I have a bunch of flux ce's lost their grid-colum children for some reason. I already migrated namespaces for CType and tx_fed_fcefile. The CE for Flux-Content-Element looks to work so far. But all childrens are lost and I don't understand the logic for migrating the colPos that has been missing/was obsolete in TYPO3 v7 since migrating to TYPO3 v8. The flux:grid.column is using I'm now running flux v. 9.2.0 and fluidpages 4.3 (which seems to be the only possible option for composer and TYPO3 8.7). Does anyone have a hint for me? |
Okay... figured out it colPos seems to be the parentRecord.uid. But now I'm running into other issues... for some reason 'flux:grid.column' inside Slider-Template using f:for and flux.grid.row is always reusing same label and name attribute for all occurances inside loop. What the hell is going on there. |
@typoworx-de Normally I don't reply to issues that have been closed for this long, but in this case the info may help others searching for migration information. Please read through this issue to understand the calculation of new colPos values. The colPos is not merely the parent UID, it is So if parent record's UID (value of old This is what gets done by the migration script which is triggered as extension upgrade script: https://github.com/FluidTYPO3/flux/blob/development/class.ext_update.php#L101 So:
Your problem description is a bit unclear but the symptom sounds a bit like you are not using unique colPos values, did not use a raw integer as colPos, or used values outside the allowed range of |
Hi,
I am trying to update a huge Website from TYPO3 6 to TYPO3 8. I learned, that some “template files must be migrated to add "colPos" for each flux:grid.column”. I wonder what is supposed to be the value of the added attribute colPos since I find no hint in the changelogs or anywhere else. Documentation doesn’t seem to be up-to-date yet.
I have template code like this:
<flux:grid.column name="content.{iteration.index}" label="{f:if(condition: panel.panel.title, then: panel.panel.title, else: 'Content, panel {iteration.cycle}') }" />
Note: I did not develop this particular website, and I’m afraid I’m not experienced in TPO3fluid. :-(
Thanks for helping me on!
— Tosta
The text was updated successfully, but these errors were encountered: