Delete slide from TypoScript variable - typo3

I want to delete the slide function from my TypoScript varaible. What should I remove exactly?
hidebox = TEXT
hidebox {
value =
override {
required = 1
data = levelfield : -1 , showbox, slide
}
}

all the slide is given with:
data = levelfield : -1 , showbox, slide
to remove the sliding you have to change it to the simple field access:
field = showbox

Thank you Bernd,
Then i have changed the code to this :
hidebox = TEXT
hidebox {
data = page : showbox
}

Related

Override image tag if it is the first?

I am using TYPO3 7.6 with 'CSS Styled Content'.
What I want to do is override the img tag if it is the first image listed in the content element.
So I have added a custom img tag under tt_content.image.20.1.1.layout.custom
Now how do I override tt_content.image.20.1.1.layoutKey if it is the first image?
Eg:
tt_content.image.20.1.1.layoutKey.override = custom
tt_content.image.20.1.1.layoutKey.override.if {
value = 1
equals.field = imageOrderNumber??
}
Or is there another way?
There is a register containing the current image number: register:IMAGE_NUM_CURRENT.
So it should work like this:
tt_content.image.20.1.1.layoutKey.override = custom
tt_content.image.20.1.1.layoutKey.override.if {
value = 1
equals.data = register:IMAGE_NUM_CURRENT
}

TYPO3 rename Appearance -> Layouts of gridelements Extension

I'm trying to rename the layout labels of the Appearance tab in a gridelements module.
I can easily change labels of standard content elements via:
TCEFORM.tt_content {
layout.types {
textpic {
altLabels {
0 = Standard
1 = Bild rechts
2 = Bild links (klein)
3 = Farbig
}
removeItems = 4, 5, 100
}
image {
altLabels {
0 = Standard
1 = kleines Bild
}
removeItems = 2, 3, 4, 5, 100
}
}}
However I'm not able to figure this out. From the documentation I got: https://docs.typo3.org/typo3cms/TSconfigReference/PageTsconfig/TceForm.html
I found something, in german, that seems to work for another extension (news) https://jweiland.net/typo3/codebeispiele/tsconfig/labels-in-flexforms-anpassen.html
There're no different labels for those layouts depending on the content of table tt_content column tx_gridelements_backend_layout, like in my example above for table tt_content and column CType.
I'd appreciate help, thanks a lot!
You can achieve this the following way:
TCEFORM.tt_content {
layout.types {
gridelements_pi1 {
altLabels.1 = Change item # change item
addItems.400 = New Item # add item
removeItems = 3 # remove item
}
}
}

How to format word insid list which show when I do autocomplete?

I define my own languge .... in my languge functions and I want to do autocomplete with my function .... I want to do 2 things ...
the first thing is :
for example :
if I have class called className contain fun1 and func2
I want when I Type className and press "." (className.) to show me list contain :
int fun1
double fun2
and when I select int fun1 only fun1 is selected (something like label and value ... the label here is :int fun1 and the value is : fun1 ...when I selected the label I want to value is type on codemirror ) How I can do it ?
the second thing is :
How I can color the words in label in different color for example :
in label (int fun1) I want do color the word int by red color and fun1 by blue color insid the label ... How I can do it ?
if I can't do it with codemirror there are any plugin to do it with codemirror ??
Thanks in advance
EDIT :
Hi I find this plugin here... But I did not knew How I can change displayText and text for my own language
I used this code for autocomplete my language :
var orig = CodeMirror.hint.anyword;
var inner;
CodeMirror.hint.anyword = function(cm) {
inner = orig(cm) || { from: cm.getCursor(), to: cm.getCursor()};
inner.list.length = 0;
inner.list.push("fun1");
inner.list.push("fun2");
return inner;
}
extraKeys: {
"Ctrl-Space": "autocomplete",
"Ctrl-Space":function(cm){ CodeMirror.showHint(cm, CodeMirror.hint.anyword); },
"'.'": "autocomplete",
"'.'" : function(cm) {
setTimeout(function(){cm.execCommand("autocomplete");}, 10);
CodeMirror.showHint(cm, CodeMirror.hint.anyword);
},
can any body help me How to change displayText and text for my CodeMirror.showHint .... plz help

TYPO3 tt_news genericmarkers url for every news item on list view

I create the genericmarker (###GENERIC_URL###) of "current" url and display it on single view page.
plugin.tt_news {
genericmarkers.URL = TEXT
genericmarkers.URL {
data = getIndpEnv:TYPO3_REQUEST_URL
wrap = link: |
}
}
Is it possible to get the tt_news url for every news item and display it on list view as a additional url link?
If I understood you correctly, you need single view url ?
This should work :
plugin.tt_news.genericmarkers.URL = COA
plugin.tt_news.genericmarkers.URL {
1 = TEXT
1.data = TSFE:baseUrl
2 = TEXT
2 {
value =
typolink = 1
typolink {
# Change 1 to page UID where your single view plugin is placed
parameter = 1
additionalParams = &tx_ttnews[tt_news]={field:uid}
additionalParams.insertData = 1
returnLast = url
}
}
}

Dynamically Generated Telerik MVC3 Grid - Add Checkboxes

I have a grid that is dynamically generated based on search criteria. I render the grid in a partial view using Ajax. That all works fine.
I now need to add a checkbox column as the first column.
Also, how do I get filtering, sorting paging etc. to work now since it is in a partial view.
When i click on a header to sort I get a Page not found error and the filter Icon doesnt do anything.
And one more thing. When I try to add a GridCommandColumnSettings to the grid I get the error
"Invalid initializer member declarator"
Code is below for the gridcolumnsettings
public GridColumnSettings[] NewColumns(DataTable fullDT)
{
GridColumnSettings[] newColumns = new GridColumnSettings[fullDT.Columns.Count];
for (int i = 0; i < fullDT.Columns.Count; i++)
{
// set the visibility property for the DeliveryID
bool boolDeliveryID;
if (fullDT.Columns[i].ColumnName == "DeliveryID")
boolDeliveryID = false;
else
boolDeliveryID = true;
newColumns[i] = new GridColumnSettings
{
new GridCommandColumnSettings
{
Commands =
{
new GridEditActionCommand(),
new GridDeleteActionCommand()
},
Width = "200px",
Title = "Commands"
},
Member = fullDT.Columns[i].ColumnName,
Title = fullDT.Columns[i].ColumnName,
Visible = boolDeliveryID,
Filterable = true,
Sortable = true
};
}
return newColumns;
}
Any suggestions would be appreciated.
Thanks
I edited my post to add my partial for the Grid
Here is my partial for the grid
#(Html.Telerik().Grid<System.Data.DataRow>(Model.Data.Rows.Cast<System.Data.DataRow>())
.Name("Grid")
.Columns(columns =>
{
columns.LoadSettings(Model.Columns as IEnumerable<GridColumnSettings>);
})
.DataBinding(dataBinding => dataBinding.Ajax().Select("_DeliveryManagerCustomBinding", "Deliveries"))
.EnableCustomBinding(true)
.Resizable(resize => resize.Columns(true))
)
I don't add columns this way when I use the Telerik Grid control, but looking at what you're doing I would hazard a guess to say you will need to do something like the following:
increase the size of the newColumns array by 1 (because we're going to add in the checkbox column):
GridColumnSettings[] newColumns = new GridColumnSettings[fullDT.Columns.Count + 1];
if you want it at the beginning you will need to do the following before your for-loop:
GridColumnSettings s = new GridColumnSettings() {
ClientTemplate("<input type=\"checkbox\" name=\"checkeditems\" value=\"some value\" />")
Title("title goes in here")
};
Then you will add it into your array:
newColumns[0] = s;
and then increase the start index for your for-loop to 1:
for (int i = 1; i < fullDT.Columns.Count; i++)
the checkbox column will go at the beginning